結果

問題 No.71 そろばん
ユーザー tnodinotnodino
提出日時 2022-02-26 20:04:26
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 597 ms / 5,000 ms
コード長 114 bytes
コンパイル時間 190 ms
コンパイル使用メモリ 10,436 KB
実行使用メモリ 7,908 KB
最終ジャッジ日時 2023-09-17 23:08:11
合計ジャッジ時間 9,352 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,676 KB
testcase_01 AC 17 ms
7,780 KB
testcase_02 AC 597 ms
7,756 KB
testcase_03 AC 249 ms
7,860 KB
testcase_04 AC 353 ms
7,824 KB
testcase_05 AC 505 ms
7,896 KB
testcase_06 AC 562 ms
7,716 KB
testcase_07 AC 377 ms
7,756 KB
testcase_08 AC 272 ms
7,752 KB
testcase_09 AC 575 ms
7,760 KB
testcase_10 AC 347 ms
7,716 KB
testcase_11 AC 93 ms
7,908 KB
testcase_12 AC 193 ms
7,768 KB
testcase_13 AC 567 ms
7,852 KB
testcase_14 AC 241 ms
7,848 KB
testcase_15 AC 476 ms
7,896 KB
testcase_16 AC 92 ms
7,892 KB
testcase_17 AC 281 ms
7,744 KB
testcase_18 AC 496 ms
7,712 KB
testcase_19 AC 575 ms
7,752 KB
testcase_20 AC 550 ms
7,764 KB
testcase_21 AC 262 ms
7,908 KB
testcase_22 AC 425 ms
7,740 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
ans = 0
for i in range(N+1):
    S = (i * (N - i + 1)) + (N - i)
    ans = max(ans, S)
print(ans)
0