結果

問題 No.746 7の倍数
ユーザー 37zigen
提出日時 2020-02-18 11:04:44
言語 Java
(openjdk 23)
結果
AC  
実行時間 460 ms / 2,000 ms
コード長 474 bytes
コンパイル時間 2,487 ms
コンパイル使用メモリ 79,420 KB
実行使用メモリ 58,984 KB
最終ジャッジ日時 2024-10-06 15:27:51
合計ジャッジ時間 9,359 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.math.BigInteger;
import java.util.Arrays;
import java.util.Scanner;

class Main {
	public static void main(String[] args) throws Exception {
		new Main().run();
	}
	
	void run() {
		Scanner sc=new Scanner(System.in);
		int N=sc.nextInt();
		BigInteger a=BigInteger.valueOf(10).pow(N);
		a=a.divide(BigInteger.valueOf(7));
		System.out.println(N==0?0:("0."+a));
	}
	
	static void tr(Object... objects) {
		System.out.println(Arrays.deepToString(objects));
	}
	
}
0