結果

問題 No.71 そろばん
ユーザー zombietanzombietan
提出日時 2016-05-12 18:52:24
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 739 ms / 5,000 ms
コード長 102 bytes
コンパイル時間 122 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 50,640 KB
最終ジャッジ日時 2024-04-15 15:19:31
合計ジャッジ時間 10,788 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
10,752 KB
testcase_01 AC 31 ms
10,752 KB
testcase_02 AC 739 ms
50,640 KB
testcase_03 AC 303 ms
30,296 KB
testcase_04 AC 416 ms
32,352 KB
testcase_05 AC 617 ms
50,152 KB
testcase_06 AC 654 ms
50,028 KB
testcase_07 AC 442 ms
33,344 KB
testcase_08 AC 302 ms
30,432 KB
testcase_09 AC 668 ms
50,164 KB
testcase_10 AC 472 ms
32,476 KB
testcase_11 AC 104 ms
15,652 KB
testcase_12 AC 235 ms
21,840 KB
testcase_13 AC 646 ms
50,024 KB
testcase_14 AC 275 ms
30,300 KB
testcase_15 AC 531 ms
50,020 KB
testcase_16 AC 103 ms
15,648 KB
testcase_17 AC 308 ms
30,416 KB
testcase_18 AC 597 ms
50,152 KB
testcase_19 AC 689 ms
50,024 KB
testcase_20 AC 689 ms
50,024 KB
testcase_21 AC 316 ms
30,428 KB
testcase_22 AC 486 ms
50,128 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

m = set()
for n in range(1,N+1):
    p = n + (n+1)*(N-n)
    m.add(p)

print(max(m))
0