結果

問題 No.1162 Many Quotients hard
ユーザー tikitaka1201tikitaka1201
提出日時 2020-10-01 21:26:17
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 188 bytes
コンパイル時間 1,315 ms
コンパイル使用メモリ 87,028 KB
実行使用メモリ 71,976 KB
最終ジャッジ日時 2023-09-21 10:12:44
合計ジャッジ時間 5,927 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
71,880 KB
testcase_01 AC 81 ms
71,564 KB
testcase_02 AC 81 ms
71,856 KB
testcase_03 AC 76 ms
71,936 KB
testcase_04 AC 82 ms
71,712 KB
testcase_05 AC 78 ms
71,536 KB
testcase_06 AC 78 ms
71,516 KB
testcase_07 AC 81 ms
71,508 KB
testcase_08 AC 87 ms
71,512 KB
testcase_09 AC 81 ms
71,780 KB
testcase_10 AC 86 ms
71,732 KB
testcase_11 AC 84 ms
71,744 KB
testcase_12 AC 85 ms
71,740 KB
testcase_13 AC 81 ms
71,404 KB
testcase_14 AC 79 ms
71,908 KB
testcase_15 AC 81 ms
71,660 KB
testcase_16 AC 82 ms
71,592 KB
testcase_17 AC 80 ms
71,908 KB
testcase_18 AC 81 ms
71,976 KB
testcase_19 AC 78 ms
71,768 KB
testcase_20 AC 83 ms
71,912 KB
testcase_21 AC 78 ms
71,736 KB
testcase_22 AC 87 ms
71,696 KB
testcase_23 AC 81 ms
71,508 KB
testcase_24 AC 80 ms
71,456 KB
testcase_25 AC 83 ms
71,724 KB
testcase_26 AC 83 ms
71,704 KB
testcase_27 AC 82 ms
71,924 KB
testcase_28 AC 82 ms
71,588 KB
testcase_29 AC 78 ms
71,664 KB
testcase_30 AC 79 ms
71,848 KB
testcase_31 WA -
testcase_32 AC 78 ms
71,968 KB
testcase_33 AC 76 ms
71,724 KB
testcase_34 AC 76 ms
71,744 KB
testcase_35 AC 76 ms
71,892 KB
testcase_36 AC 78 ms
71,532 KB
testcase_37 WA -
testcase_38 AC 76 ms
71,888 KB
testcase_39 AC 79 ms
71,724 KB
testcase_40 AC 78 ms
71,952 KB
testcase_41 AC 76 ms
71,628 KB
testcase_42 AC 78 ms
71,928 KB
testcase_43 AC 78 ms
71,764 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
tmp=0
for i in range(max(1, int(n**0.5)-4),max(1, int(n**0.5)+100)):
    #print(n//i)
    if n/i-n/(i+1)<1:
        tmp=i
        break
if tmp!=0:
    print((tmp-1)+n//tmp)
0