結果

問題 No.1162 Many Quotients hard
ユーザー tikitaka1201tikitaka1201
提出日時 2020-10-01 21:22:15
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 153 bytes
コンパイル時間 2,078 ms
コンパイル使用メモリ 87,184 KB
実行使用メモリ 79,672 KB
最終ジャッジ日時 2023-09-21 10:07:03
合計ジャッジ時間 7,801 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,692 KB
testcase_01 AC 75 ms
71,704 KB
testcase_02 AC 74 ms
71,636 KB
testcase_03 AC 77 ms
71,448 KB
testcase_04 AC 76 ms
71,500 KB
testcase_05 AC 75 ms
71,804 KB
testcase_06 AC 76 ms
71,712 KB
testcase_07 AC 74 ms
71,880 KB
testcase_08 AC 76 ms
71,580 KB
testcase_09 AC 77 ms
71,484 KB
testcase_10 AC 80 ms
71,724 KB
testcase_11 AC 80 ms
71,708 KB
testcase_12 AC 80 ms
71,780 KB
testcase_13 AC 81 ms
71,568 KB
testcase_14 AC 77 ms
71,784 KB
testcase_15 AC 77 ms
71,824 KB
testcase_16 AC 77 ms
71,800 KB
testcase_17 AC 77 ms
71,784 KB
testcase_18 AC 76 ms
71,492 KB
testcase_19 AC 76 ms
71,640 KB
testcase_20 AC 75 ms
71,620 KB
testcase_21 RE -
testcase_22 RE -
testcase_23 RE -
testcase_24 AC 77 ms
71,588 KB
testcase_25 RE -
testcase_26 RE -
testcase_27 RE -
testcase_28 RE -
testcase_29 RE -
testcase_30 RE -
testcase_31 RE -
testcase_32 RE -
testcase_33 RE -
testcase_34 RE -
testcase_35 RE -
testcase_36 RE -
testcase_37 RE -
testcase_38 AC 76 ms
71,600 KB
testcase_39 AC 74 ms
71,712 KB
testcase_40 AC 75 ms
71,788 KB
testcase_41 AC 74 ms
71,340 KB
testcase_42 AC 76 ms
71,716 KB
testcase_43 AC 76 ms
71,596 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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