結果

問題 No.71 そろばん
ユーザー kyo1kyo1
提出日時 2020-11-30 21:46:19
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 82 ms / 5,000 ms
コード長 106 bytes
コンパイル時間 601 ms
コンパイル使用メモリ 87,200 KB
実行使用メモリ 76,028 KB
最終ジャッジ日時 2023-10-11 03:05:35
合計ジャッジ時間 4,423 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,292 KB
testcase_01 AC 70 ms
71,252 KB
testcase_02 AC 82 ms
75,796 KB
testcase_03 AC 79 ms
75,820 KB
testcase_04 AC 79 ms
75,748 KB
testcase_05 AC 81 ms
75,804 KB
testcase_06 AC 80 ms
75,936 KB
testcase_07 AC 78 ms
75,676 KB
testcase_08 AC 77 ms
75,668 KB
testcase_09 AC 82 ms
75,900 KB
testcase_10 AC 79 ms
76,028 KB
testcase_11 AC 76 ms
75,928 KB
testcase_12 AC 77 ms
75,944 KB
testcase_13 AC 82 ms
75,940 KB
testcase_14 AC 79 ms
75,796 KB
testcase_15 AC 81 ms
75,804 KB
testcase_16 AC 79 ms
75,820 KB
testcase_17 AC 79 ms
75,872 KB
testcase_18 AC 82 ms
75,800 KB
testcase_19 AC 82 ms
75,980 KB
testcase_20 AC 81 ms
75,848 KB
testcase_21 AC 79 ms
75,852 KB
testcase_22 AC 80 ms
75,940 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

res = 0
for i in range(0, N + 1):
    res = max(res, i + (N - i) * (i + 1))

print(res)
0