結果

問題 No.508 超ゆとり教育
ユーザー 37zigen37zigen
提出日時 2018-04-21 05:44:44
言語 Java21
(openjdk 21)
結果
AC  
実行時間 133 ms / 2,000 ms
コード長 588 bytes
コンパイル時間 2,692 ms
コンパイル使用メモリ 72,532 KB
実行使用メモリ 56,152 KB
最終ジャッジ日時 2023-09-09 12:17:09
合計ジャッジ時間 4,668 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 132 ms
55,976 KB
testcase_01 AC 132 ms
56,060 KB
testcase_02 AC 132 ms
55,944 KB
testcase_03 AC 133 ms
55,968 KB
testcase_04 AC 133 ms
55,968 KB
testcase_05 AC 133 ms
55,812 KB
testcase_06 AC 132 ms
56,152 KB
testcase_07 AC 132 ms
56,064 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.FileNotFoundException;
import java.util.Arrays;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws FileNotFoundException {
		long t = System.currentTimeMillis();
		new Main().run();
		System.err.println(System.currentTimeMillis() - t);
	}

	public void run() {
		Scanner sc = new Scanner(System.in);
		double n = sc.nextDouble();
		n = Math.sqrt(n / Math.PI);
		long ans = (long) n;
		while(ans<1)++ans;
		System.out.println(ans);
	}

	static void tr(Object... objects) {
		System.out.println(Arrays.deepToString(objects));
	}

}
0