結果

問題 No.903 太郎の確率
ユーザー ks2mks2m
提出日時 2019-10-11 21:20:51
言語 Java19
(openjdk 21)
結果
AC  
実行時間 38 ms / 2,000 ms
コード長 350 bytes
コンパイル時間 3,602 ms
コンパイル使用メモリ 70,776 KB
実行使用メモリ 49,396 KB
最終ジャッジ日時 2023-08-16 16:47:26
合計ジャッジ時間 3,686 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
49,396 KB
testcase_01 AC 38 ms
49,272 KB
testcase_02 AC 37 ms
49,260 KB
testcase_03 AC 36 ms
49,372 KB
testcase_04 AC 38 ms
49,180 KB
testcase_05 AC 36 ms
49,264 KB
testcase_06 AC 38 ms
49,188 KB
testcase_07 AC 37 ms
49,196 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] sa = br.readLine().split(" ");
		double n = Integer.parseInt(sa[0]);
		br.close();

		System.out.println(1 / n);
	}
}
0