結果

問題 No.746 7の倍数
ユーザー hhgfhn1
提出日時 2018-10-19 22:28:46
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 279 bytes
コンパイル時間 2,163 ms
コンパイル使用メモリ 74,016 KB
実行使用メモリ 41,788 KB
最終ジャッジ日時 2024-11-18 21:27:58
合計ジャッジ時間 6,017 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other WA * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {

	@SuppressWarnings("resource")
	public static void main(String args[]) {
		Scanner scanner = new Scanner(System.in);
		int n=scanner.nextInt();
		long p=(long) Math.pow(10, n);
		long k=p/7;
		System.out.println((double)k/p);
	}
}
0