結果

問題 No.1459 スマホを落としたいだけなのに
ユーザー lloyzlloyz
提出日時 2023-07-12 00:42:16
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 77 ms / 2,000 ms
コード長 123 bytes
コンパイル時間 770 ms
コンパイル使用メモリ 87,100 KB
実行使用メモリ 75,776 KB
最終ジャッジ日時 2023-10-11 15:17:20
合計ジャッジ時間 4,650 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
70,996 KB
testcase_01 AC 70 ms
70,884 KB
testcase_02 AC 72 ms
71,240 KB
testcase_03 AC 75 ms
71,080 KB
testcase_04 AC 71 ms
71,168 KB
testcase_05 AC 71 ms
71,268 KB
testcase_06 AC 71 ms
71,228 KB
testcase_07 AC 72 ms
71,236 KB
testcase_08 AC 71 ms
71,156 KB
testcase_09 AC 71 ms
70,888 KB
testcase_10 AC 71 ms
71,024 KB
testcase_11 AC 75 ms
75,424 KB
testcase_12 AC 75 ms
75,400 KB
testcase_13 AC 77 ms
75,776 KB
testcase_14 AC 76 ms
75,516 KB
testcase_15 AC 76 ms
75,540 KB
testcase_16 AC 74 ms
75,620 KB
testcase_17 AC 77 ms
75,460 KB
testcase_18 AC 75 ms
75,408 KB
testcase_19 AC 76 ms
75,516 KB
testcase_20 AC 75 ms
75,248 KB
testcase_21 AC 77 ms
75,512 KB
testcase_22 AC 76 ms
75,316 KB
testcase_23 AC 75 ms
75,436 KB
testcase_24 AC 73 ms
75,420 KB
testcase_25 AC 74 ms
75,376 KB
testcase_26 AC 75 ms
75,216 KB
testcase_27 AC 77 ms
75,420 KB
testcase_28 AC 75 ms
75,248 KB
testcase_29 AC 76 ms
75,252 KB
testcase_30 AC 75 ms
75,564 KB
testcase_31 AC 76 ms
75,508 KB
testcase_32 AC 77 ms
75,648 KB
testcase_33 AC 75 ms
75,532 KB
testcase_34 AC 75 ms
75,420 KB
testcase_35 AC 74 ms
75,720 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())

ans = 0
while True:
    if ans * (ans + 1) // 2 < n:
        ans += 1
    else:
        break
print(ans)
0