結果

問題 No.71 そろばん
ユーザー nari11111nari11111
提出日時 2014-11-18 23:43:33
言語 Python2
(2.7.18)
結果
AC  
実行時間 367 ms / 5,000 ms
コード長 163 bytes
コンパイル時間 833 ms
コンパイル使用メモリ 6,520 KB
実行使用メモリ 37,388 KB
最終ジャッジ日時 2023-08-30 21:41:57
合計ジャッジ時間 6,896 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
5,964 KB
testcase_01 AC 11 ms
5,916 KB
testcase_02 AC 367 ms
37,388 KB
testcase_03 AC 155 ms
18,492 KB
testcase_04 AC 213 ms
23,924 KB
testcase_05 AC 311 ms
32,352 KB
testcase_06 AC 351 ms
35,732 KB
testcase_07 AC 234 ms
25,180 KB
testcase_08 AC 167 ms
19,500 KB
testcase_09 AC 341 ms
34,684 KB
testcase_10 AC 218 ms
24,004 KB
testcase_11 AC 58 ms
10,092 KB
testcase_12 AC 118 ms
15,240 KB
testcase_13 AC 352 ms
35,808 KB
testcase_14 AC 149 ms
18,004 KB
testcase_15 AC 284 ms
29,672 KB
testcase_16 AC 57 ms
9,672 KB
testcase_17 AC 168 ms
19,828 KB
testcase_18 AC 295 ms
30,908 KB
testcase_19 AC 346 ms
35,672 KB
testcase_20 AC 341 ms
35,028 KB
testcase_21 AC 162 ms
18,976 KB
testcase_22 AC 254 ms
27,488 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(raw_input())

ans=[]

for i in xrange(1,n):
    ue = i
    sita = n-i
    e = (sita+1)*ue+sita
    # print e

    ans.append(e)

print max(ans)
0