結果

問題 No.746 7の倍数
ユーザー 37zigen
提出日時 2020-02-18 11:03:27
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 465 bytes
コンパイル時間 2,411 ms
コンパイル使用メモリ 81,460 KB
実行使用メモリ 47,888 KB
最終ジャッジ日時 2024-10-06 15:27:21
合計ジャッジ時間 11,033 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
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("0."+a);
	}
	
	static void tr(Object... objects) {
		System.out.println(Arrays.deepToString(objects));
	}
	
}
0