結果

問題 No.746 7の倍数
ユーザー 37zigen37zigen
提出日時 2020-02-18 11:03:27
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 465 bytes
コンパイル時間 2,485 ms
コンパイル使用メモリ 86,564 KB
実行使用メモリ 58,888 KB
最終ジャッジ日時 2024-04-16 04:05:57
合計ジャッジ時間 10,903 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 135 ms
54,228 KB
testcase_02 AC 136 ms
54,012 KB
testcase_03 AC 527 ms
58,628 KB
testcase_04 AC 142 ms
53,608 KB
testcase_05 AC 202 ms
56,904 KB
testcase_06 AC 303 ms
57,860 KB
testcase_07 AC 270 ms
57,804 KB
testcase_08 AC 308 ms
57,980 KB
testcase_09 AC 284 ms
58,168 KB
testcase_10 AC 199 ms
56,916 KB
testcase_11 AC 448 ms
58,412 KB
testcase_12 AC 511 ms
58,712 KB
testcase_13 AC 353 ms
57,908 KB
testcase_14 AC 402 ms
58,488 KB
testcase_15 AC 394 ms
58,452 KB
testcase_16 AC 388 ms
58,052 KB
testcase_17 AC 386 ms
58,284 KB
testcase_18 AC 404 ms
58,548 KB
testcase_19 AC 359 ms
58,888 KB
testcase_20 AC 273 ms
58,084 KB
testcase_21 AC 216 ms
56,852 KB
testcase_22 AC 495 ms
58,148 KB
権限があれば一括ダウンロードができます

ソースコード

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