結果

問題 No.71 そろばん
ユーザー kutsutamakutsutama
提出日時 2018-12-17 01:17:23
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 495 ms / 5,000 ms
コード長 106 bytes
コンパイル時間 96 ms
コンパイル使用メモリ 11,692 KB
実行使用メモリ 9,968 KB
最終ジャッジ日時 2023-10-25 23:21:30
合計ジャッジ時間 8,112 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
9,968 KB
testcase_01 AC 25 ms
9,968 KB
testcase_02 AC 495 ms
9,968 KB
testcase_03 AC 207 ms
9,968 KB
testcase_04 AC 290 ms
9,968 KB
testcase_05 AC 414 ms
9,968 KB
testcase_06 AC 454 ms
9,968 KB
testcase_07 AC 309 ms
9,968 KB
testcase_08 AC 218 ms
9,968 KB
testcase_09 AC 465 ms
9,968 KB
testcase_10 AC 289 ms
9,968 KB
testcase_11 AC 84 ms
9,968 KB
testcase_12 AC 158 ms
9,968 KB
testcase_13 AC 466 ms
9,968 KB
testcase_14 AC 208 ms
9,968 KB
testcase_15 AC 374 ms
9,968 KB
testcase_16 AC 85 ms
9,968 KB
testcase_17 AC 242 ms
9,968 KB
testcase_18 AC 377 ms
9,968 KB
testcase_19 AC 459 ms
9,968 KB
testcase_20 AC 443 ms
9,968 KB
testcase_21 AC 213 ms
9,968 KB
testcase_22 AC 343 ms
9,968 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())

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

print(res)
0