結果

問題 No.71 そろばん
ユーザー bellangeldindonbellangeldindon
提出日時 2019-04-26 11:02:53
言語 Python2
(2.7.18)
結果
AC  
実行時間 235 ms / 5,000 ms
コード長 104 bytes
コンパイル時間 232 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 38,016 KB
最終ジャッジ日時 2024-05-03 03:50:41
合計ジャッジ時間 4,280 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 9 ms
6,272 KB
testcase_01 AC 9 ms
6,144 KB
testcase_02 AC 235 ms
38,016 KB
testcase_03 AC 99 ms
18,816 KB
testcase_04 AC 138 ms
24,448 KB
testcase_05 AC 203 ms
32,768 KB
testcase_06 AC 225 ms
36,224 KB
testcase_07 AC 146 ms
25,808 KB
testcase_08 AC 108 ms
19,968 KB
testcase_09 AC 217 ms
35,396 KB
testcase_10 AC 137 ms
24,448 KB
testcase_11 AC 38 ms
10,368 KB
testcase_12 AC 77 ms
15,616 KB
testcase_13 AC 227 ms
36,392 KB
testcase_14 AC 96 ms
18,560 KB
testcase_15 AC 182 ms
30,400 KB
testcase_16 AC 39 ms
9,984 KB
testcase_17 AC 108 ms
20,224 KB
testcase_18 AC 190 ms
31,360 KB
testcase_19 AC 226 ms
35,888 KB
testcase_20 AC 218 ms
35,328 KB
testcase_21 AC 104 ms
19,328 KB
testcase_22 AC 165 ms
27,904 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(raw_input())
max = 0
for i in range(0, N+1):
	x = i + (i+1)*(N-i)
	if max < x: max = x
print max
0