結果

問題 No.1459 スマホを落としたいだけなのに
ユーザー lie_of_lillielie_of_lillie
提出日時 2021-05-05 19:56:19
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 77 ms / 2,000 ms
コード長 158 bytes
コンパイル時間 1,146 ms
コンパイル使用メモリ 87,116 KB
実行使用メモリ 76,060 KB
最終ジャッジ日時 2023-10-11 14:05:36
合計ジャッジ時間 5,061 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,388 KB
testcase_01 AC 73 ms
71,396 KB
testcase_02 AC 72 ms
71,288 KB
testcase_03 AC 71 ms
71,376 KB
testcase_04 AC 71 ms
71,412 KB
testcase_05 AC 71 ms
71,276 KB
testcase_06 AC 72 ms
71,268 KB
testcase_07 AC 70 ms
71,624 KB
testcase_08 AC 68 ms
71,324 KB
testcase_09 AC 70 ms
71,500 KB
testcase_10 AC 71 ms
71,120 KB
testcase_11 AC 75 ms
75,828 KB
testcase_12 AC 75 ms
76,044 KB
testcase_13 AC 75 ms
75,912 KB
testcase_14 AC 75 ms
75,780 KB
testcase_15 AC 73 ms
75,828 KB
testcase_16 AC 74 ms
75,904 KB
testcase_17 AC 72 ms
75,852 KB
testcase_18 AC 74 ms
75,772 KB
testcase_19 AC 74 ms
76,060 KB
testcase_20 AC 74 ms
76,048 KB
testcase_21 AC 74 ms
75,876 KB
testcase_22 AC 77 ms
75,808 KB
testcase_23 AC 72 ms
75,892 KB
testcase_24 AC 73 ms
75,852 KB
testcase_25 AC 72 ms
75,816 KB
testcase_26 AC 73 ms
75,908 KB
testcase_27 AC 72 ms
75,944 KB
testcase_28 AC 74 ms
75,960 KB
testcase_29 AC 73 ms
75,744 KB
testcase_30 AC 75 ms
75,980 KB
testcase_31 AC 74 ms
75,932 KB
testcase_32 AC 74 ms
75,992 KB
testcase_33 AC 74 ms
75,960 KB
testcase_34 AC 73 ms
75,772 KB
testcase_35 AC 72 ms
75,812 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
N = int(input())

for k in range(1, 10**10):
    # num = math.ceil(N/k) + (k-1)
    # print(num, k)

    if k*(k+1)/2 >= N:
        break
print(k)
0