結果

問題 No.71 そろばん
ユーザー ronpooronpoo
提出日時 2023-09-27 10:21:02
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 83 ms / 5,000 ms
コード長 111 bytes
コンパイル時間 279 ms
コンパイル使用メモリ 87,232 KB
実行使用メモリ 76,016 KB
最終ジャッジ日時 2023-09-27 10:21:06
合計ジャッジ時間 3,628 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 65 ms
71,308 KB
testcase_01 AC 72 ms
71,544 KB
testcase_02 AC 75 ms
75,748 KB
testcase_03 AC 73 ms
75,656 KB
testcase_04 AC 70 ms
75,748 KB
testcase_05 AC 73 ms
75,844 KB
testcase_06 AC 75 ms
75,764 KB
testcase_07 AC 70 ms
75,720 KB
testcase_08 AC 72 ms
76,016 KB
testcase_09 AC 72 ms
75,948 KB
testcase_10 AC 71 ms
75,800 KB
testcase_11 AC 70 ms
75,844 KB
testcase_12 AC 72 ms
75,852 KB
testcase_13 AC 74 ms
75,672 KB
testcase_14 AC 83 ms
75,848 KB
testcase_15 AC 72 ms
75,684 KB
testcase_16 AC 69 ms
75,844 KB
testcase_17 AC 72 ms
75,764 KB
testcase_18 AC 70 ms
75,856 KB
testcase_19 AC 75 ms
75,768 KB
testcase_20 AC 74 ms
75,860 KB
testcase_21 AC 74 ms
75,836 KB
testcase_22 AC 76 ms
75,836 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

ans = 0
for a in range(N):
    b = N - a
    v = (a+1)*b + a
    ans = max(ans, v)
print(ans)
0