結果

問題 No.1162 Many Quotients hard
ユーザー tentententen
提出日時 2020-08-17 17:46:51
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 256 bytes
コンパイル時間 3,390 ms
コンパイル使用メモリ 73,376 KB
実行使用メモリ 41,444 KB
最終ジャッジ日時 2024-10-11 11:10:31
合計ジャッジ時間 10,176 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
39,888 KB
testcase_01 AC 134 ms
41,104 KB
testcase_02 AC 133 ms
41,048 KB
testcase_03 AC 134 ms
41,176 KB
testcase_04 AC 131 ms
41,160 KB
testcase_05 AC 131 ms
41,136 KB
testcase_06 AC 131 ms
40,812 KB
testcase_07 AC 134 ms
41,304 KB
testcase_08 AC 133 ms
41,328 KB
testcase_09 AC 134 ms
41,180 KB
testcase_10 AC 134 ms
41,124 KB
testcase_11 AC 131 ms
41,156 KB
testcase_12 AC 133 ms
41,316 KB
testcase_13 AC 135 ms
41,040 KB
testcase_14 AC 133 ms
41,016 KB
testcase_15 AC 132 ms
41,112 KB
testcase_16 AC 134 ms
41,156 KB
testcase_17 AC 133 ms
41,172 KB
testcase_18 AC 133 ms
41,168 KB
testcase_19 AC 131 ms
41,160 KB
testcase_20 AC 121 ms
40,028 KB
testcase_21 AC 131 ms
41,016 KB
testcase_22 AC 133 ms
40,952 KB
testcase_23 AC 136 ms
41,068 KB
testcase_24 AC 133 ms
41,072 KB
testcase_25 AC 135 ms
41,048 KB
testcase_26 AC 122 ms
40,072 KB
testcase_27 AC 134 ms
41,444 KB
testcase_28 AC 133 ms
40,932 KB
testcase_29 AC 122 ms
40,156 KB
testcase_30 AC 133 ms
41,284 KB
testcase_31 AC 133 ms
40,920 KB
testcase_32 AC 130 ms
40,816 KB
testcase_33 AC 133 ms
41,096 KB
testcase_34 AC 132 ms
40,968 KB
testcase_35 AC 132 ms
41,216 KB
testcase_36 AC 131 ms
41,156 KB
testcase_37 AC 130 ms
40,840 KB
testcase_38 AC 131 ms
40,900 KB
testcase_39 WA -
testcase_40 WA -
testcase_41 AC 133 ms
40,904 KB
testcase_42 WA -
testcase_43 AC 131 ms
41,192 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 idx = (long)Math.sqrt(n);
        System.out.println(idx + n / idx - 1);
    }
}
0