結果

問題 No.1162 Many Quotients hard
ユーザー tikitaka1201tikitaka1201
提出日時 2020-10-01 21:24:09
言語 PyPy3
(7.3.15)
結果
MLE  
実行時間 -
コード長 257 bytes
コンパイル時間 2,095 ms
コンパイル使用メモリ 87,128 KB
実行使用メモリ 526,260 KB
最終ジャッジ日時 2023-09-21 10:10:05
合計ジャッジ時間 6,730 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 66 ms
76,892 KB
testcase_01 AC 67 ms
71,708 KB
testcase_02 AC 67 ms
71,664 KB
testcase_03 AC 66 ms
71,508 KB
testcase_04 AC 66 ms
71,540 KB
testcase_05 AC 66 ms
71,708 KB
testcase_06 AC 67 ms
71,696 KB
testcase_07 AC 65 ms
71,672 KB
testcase_08 AC 67 ms
71,704 KB
testcase_09 AC 67 ms
71,504 KB
testcase_10 AC 66 ms
71,756 KB
testcase_11 AC 66 ms
71,816 KB
testcase_12 AC 67 ms
71,640 KB
testcase_13 AC 68 ms
71,964 KB
testcase_14 AC 65 ms
71,576 KB
testcase_15 AC 65 ms
71,548 KB
testcase_16 AC 66 ms
71,864 KB
testcase_17 AC 64 ms
71,508 KB
testcase_18 AC 65 ms
71,888 KB
testcase_19 AC 65 ms
71,828 KB
testcase_20 AC 65 ms
71,456 KB
testcase_21 MLE -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
testcase_31 -- -
testcase_32 -- -
testcase_33 -- -
testcase_34 -- -
testcase_35 -- -
testcase_36 -- -
testcase_37 -- -
testcase_38 -- -
testcase_39 -- -
testcase_40 -- -
testcase_41 -- -
testcase_42 -- -
testcase_43 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
tmp=0
for i in range(max(1, int(n**0.5)-2),max(1, int(n**0.5)+3)):
    if n/i-n/(i+1)<1:
        tmp=i
        break
if tmp!=0:
    print((tmp-1)+n//tmp)
else:
    s=set([])
    for i in range(1, n+1):
        s.add(n//i)
    print(len(set))
0