結果

問題 No.71 そろばん
ユーザー steek79steek79
提出日時 2015-11-06 14:10:34
言語 Python2
(2.7.18)
結果
AC  
実行時間 333 ms / 5,000 ms
コード長 115 bytes
コンパイル時間 1,324 ms
コンパイル使用メモリ 6,712 KB
実行使用メモリ 6,212 KB
最終ジャッジ日時 2023-10-11 14:21:00
合計ジャッジ時間 6,993 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
6,144 KB
testcase_01 AC 12 ms
6,200 KB
testcase_02 AC 333 ms
6,064 KB
testcase_03 AC 141 ms
6,144 KB
testcase_04 AC 196 ms
5,960 KB
testcase_05 AC 281 ms
5,956 KB
testcase_06 AC 318 ms
6,040 KB
testcase_07 AC 209 ms
5,992 KB
testcase_08 AC 153 ms
6,044 KB
testcase_09 AC 307 ms
6,044 KB
testcase_10 AC 199 ms
6,040 KB
testcase_11 AC 53 ms
6,064 KB
testcase_12 AC 108 ms
6,212 KB
testcase_13 AC 316 ms
6,044 KB
testcase_14 AC 135 ms
6,044 KB
testcase_15 AC 257 ms
5,996 KB
testcase_16 AC 53 ms
5,964 KB
testcase_17 AC 154 ms
6,040 KB
testcase_18 AC 266 ms
5,960 KB
testcase_19 AC 313 ms
6,100 KB
testcase_20 AC 311 ms
6,028 KB
testcase_21 AC 148 ms
6,040 KB
testcase_22 AC 232 ms
6,028 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = input()

champ = -1

for n in xrange(1, N+1):
    p = (n+1) * (N-n) + n
    champ = max(champ, p)

print champ
0