結果

問題 No.1162 Many Quotients hard
ユーザー tikitaka1201tikitaka1201
提出日時 2020-10-01 21:40:06
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 138 bytes
コンパイル時間 447 ms
コンパイル使用メモリ 87,208 KB
実行使用メモリ 71,636 KB
最終ジャッジ日時 2023-09-21 10:29:39
合計ジャッジ時間 6,020 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
71,412 KB
testcase_01 AC 75 ms
71,180 KB
testcase_02 AC 77 ms
71,416 KB
testcase_03 AC 78 ms
71,020 KB
testcase_04 AC 77 ms
71,104 KB
testcase_05 AC 76 ms
71,384 KB
testcase_06 AC 77 ms
71,144 KB
testcase_07 AC 84 ms
71,092 KB
testcase_08 AC 82 ms
71,176 KB
testcase_09 AC 76 ms
71,360 KB
testcase_10 AC 75 ms
71,096 KB
testcase_11 AC 75 ms
71,404 KB
testcase_12 AC 77 ms
71,220 KB
testcase_13 AC 76 ms
71,168 KB
testcase_14 AC 75 ms
71,432 KB
testcase_15 AC 77 ms
71,240 KB
testcase_16 AC 75 ms
71,216 KB
testcase_17 AC 76 ms
71,296 KB
testcase_18 AC 75 ms
71,384 KB
testcase_19 AC 77 ms
71,144 KB
testcase_20 AC 75 ms
71,496 KB
testcase_21 AC 75 ms
71,144 KB
testcase_22 AC 75 ms
71,020 KB
testcase_23 AC 76 ms
71,220 KB
testcase_24 AC 75 ms
71,140 KB
testcase_25 AC 74 ms
71,224 KB
testcase_26 AC 76 ms
71,244 KB
testcase_27 AC 74 ms
71,412 KB
testcase_28 AC 75 ms
71,296 KB
testcase_29 AC 75 ms
71,364 KB
testcase_30 AC 75 ms
71,296 KB
testcase_31 AC 85 ms
71,176 KB
testcase_32 AC 78 ms
71,216 KB
testcase_33 AC 78 ms
71,264 KB
testcase_34 AC 78 ms
71,440 KB
testcase_35 AC 76 ms
71,412 KB
testcase_36 AC 77 ms
71,240 KB
testcase_37 WA -
testcase_38 AC 77 ms
71,444 KB
testcase_39 WA -
testcase_40 WA -
testcase_41 AC 77 ms
71,220 KB
testcase_42 AC 77 ms
71,144 KB
testcase_43 AC 77 ms
71,176 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
l,r=0,n+1
while l<r:
    mid=(l+r)//2
    if mid*(mid+1)<n:
        l=mid+1
    else:
        r=mid-1

print(l+n//(l+1))
0