結果

問題 No.1459 スマホを落としたいだけなのに
ユーザー hir355hir355
提出日時 2021-03-31 21:43:10
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 66 ms / 2,000 ms
コード長 147 bytes
コンパイル時間 404 ms
コンパイル使用メモリ 86,972 KB
実行使用メモリ 71,624 KB
最終ジャッジ日時 2023-08-22 00:21:32
合計ジャッジ時間 4,093 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 64 ms
71,272 KB
testcase_01 AC 63 ms
71,324 KB
testcase_02 AC 63 ms
71,260 KB
testcase_03 AC 66 ms
71,312 KB
testcase_04 AC 65 ms
71,360 KB
testcase_05 AC 64 ms
71,276 KB
testcase_06 AC 64 ms
71,124 KB
testcase_07 AC 65 ms
71,120 KB
testcase_08 AC 64 ms
71,268 KB
testcase_09 AC 64 ms
71,432 KB
testcase_10 AC 65 ms
71,432 KB
testcase_11 AC 66 ms
71,196 KB
testcase_12 AC 63 ms
71,624 KB
testcase_13 AC 64 ms
71,560 KB
testcase_14 AC 65 ms
71,124 KB
testcase_15 AC 64 ms
71,560 KB
testcase_16 AC 65 ms
71,156 KB
testcase_17 AC 65 ms
71,376 KB
testcase_18 AC 64 ms
71,528 KB
testcase_19 AC 65 ms
71,420 KB
testcase_20 AC 65 ms
71,560 KB
testcase_21 AC 66 ms
71,272 KB
testcase_22 AC 63 ms
71,344 KB
testcase_23 AC 64 ms
71,408 KB
testcase_24 AC 66 ms
71,604 KB
testcase_25 AC 66 ms
71,616 KB
testcase_26 AC 62 ms
71,304 KB
testcase_27 AC 65 ms
71,560 KB
testcase_28 AC 66 ms
71,160 KB
testcase_29 AC 65 ms
71,368 KB
testcase_30 AC 64 ms
71,108 KB
testcase_31 AC 64 ms
71,428 KB
testcase_32 AC 64 ms
71,448 KB
testcase_33 AC 64 ms
71,436 KB
testcase_34 AC 65 ms
71,124 KB
testcase_35 AC 65 ms
71,444 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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