結果

問題 No.71 そろばん
ユーザー bellangeldindonbellangeldindon
提出日時 2019-04-26 11:02:53
言語 Python2
(2.7.18)
結果
AC  
実行時間 244 ms / 5,000 ms
コード長 104 bytes
コンパイル時間 419 ms
コンパイル使用メモリ 6,644 KB
実行使用メモリ 37,404 KB
最終ジャッジ日時 2023-08-15 16:52:35
合計ジャッジ時間 5,031 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
6,028 KB
testcase_01 AC 11 ms
5,864 KB
testcase_02 AC 244 ms
37,404 KB
testcase_03 AC 105 ms
18,372 KB
testcase_04 AC 145 ms
23,772 KB
testcase_05 AC 204 ms
32,116 KB
testcase_06 AC 230 ms
35,712 KB
testcase_07 AC 155 ms
25,260 KB
testcase_08 AC 111 ms
19,696 KB
testcase_09 AC 223 ms
34,808 KB
testcase_10 AC 145 ms
24,208 KB
testcase_11 AC 42 ms
9,940 KB
testcase_12 AC 82 ms
15,220 KB
testcase_13 AC 230 ms
35,876 KB
testcase_14 AC 101 ms
18,128 KB
testcase_15 AC 187 ms
29,924 KB
testcase_16 AC 42 ms
9,548 KB
testcase_17 AC 114 ms
19,676 KB
testcase_18 AC 194 ms
30,852 KB
testcase_19 AC 228 ms
35,488 KB
testcase_20 AC 223 ms
35,080 KB
testcase_21 AC 108 ms
19,032 KB
testcase_22 AC 169 ms
27,228 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