結果

問題 No.508 超ゆとり教育
ユーザー tentententen
提出日時 2020-12-07 10:18:24
言語 Java21
(openjdk 21)
結果
AC  
実行時間 130 ms / 2,000 ms
コード長 228 bytes
コンパイル時間 2,998 ms
コンパイル使用メモリ 74,592 KB
実行使用メモリ 57,584 KB
最終ジャッジ日時 2023-10-17 16:00:06
合計ジャッジ時間 5,328 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 129 ms
57,584 KB
testcase_01 AC 130 ms
57,312 KB
testcase_02 AC 129 ms
57,444 KB
testcase_03 AC 117 ms
56,372 KB
testcase_04 AC 126 ms
57,176 KB
testcase_05 AC 127 ms
57,480 KB
testcase_06 AC 130 ms
57,404 KB
testcase_07 AC 126 ms
57,132 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        long n = sc.nextLong();
        System.out.println((long)Math.sqrt(n / 3.0) + 1);
    }
}
0