結果

問題 No.508 超ゆとり教育
ユーザー kohaku_kohakukohaku_kohaku
提出日時 2017-04-28 22:46:15
言語 Java21
(openjdk 21)
結果
AC  
実行時間 125 ms / 2,000 ms
コード長 272 bytes
コンパイル時間 2,170 ms
コンパイル使用メモリ 70,928 KB
実行使用メモリ 56,316 KB
最終ジャッジ日時 2023-10-11 19:21:06
合計ジャッジ時間 4,053 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
55,704 KB
testcase_01 AC 125 ms
55,920 KB
testcase_02 AC 125 ms
55,740 KB
testcase_03 AC 124 ms
55,956 KB
testcase_04 AC 124 ms
55,700 KB
testcase_05 AC 122 ms
55,632 KB
testcase_06 AC 123 ms
56,316 KB
testcase_07 AC 122 ms
55,892 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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