結果

問題 No.71 そろばん
ユーザー srup٩(๑`н´๑)۶srup٩(๑`н´๑)۶
提出日時 2016-08-26 14:52:56
言語 Python2
(2.7.18)
結果
AC  
実行時間 445 ms / 5,000 ms
コード長 107 bytes
コンパイル時間 446 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 38,192 KB
最終ジャッジ日時 2024-04-25 16:57:30
合計ジャッジ時間 7,001 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
6,816 KB
testcase_01 AC 10 ms
6,940 KB
testcase_02 AC 445 ms
38,192 KB
testcase_03 AC 174 ms
19,148 KB
testcase_04 AC 245 ms
24,548 KB
testcase_05 AC 356 ms
32,884 KB
testcase_06 AC 399 ms
36,464 KB
testcase_07 AC 259 ms
25,916 KB
testcase_08 AC 184 ms
20,256 KB
testcase_09 AC 384 ms
35,512 KB
testcase_10 AC 246 ms
24,684 KB
testcase_11 AC 64 ms
10,368 KB
testcase_12 AC 134 ms
15,972 KB
testcase_13 AC 400 ms
36,432 KB
testcase_14 AC 170 ms
18,624 KB
testcase_15 AC 319 ms
30,344 KB
testcase_16 AC 65 ms
10,496 KB
testcase_17 AC 194 ms
20,388 KB
testcase_18 AC 342 ms
31,476 KB
testcase_19 AC 395 ms
36,180 KB
testcase_20 AC 395 ms
35,656 KB
testcase_21 AC 187 ms
19,712 KB
testcase_22 AC 291 ms
28,028 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = input()

ans = 0
for x in range(1, n + 1):
	now = -(x * x) + (x * n) + n
	ans = max(ans, now)
print ans
0