結果

問題 No.1687 What the Heck?
ユーザー Mik10Mik10
提出日時 2021-10-06 00:16:04
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 160 bytes
コンパイル時間 454 ms
コンパイル使用メモリ 10,540 KB
実行使用メモリ 30,744 KB
最終ジャッジ日時 2023-09-30 08:35:40
合計ジャッジ時間 2,812 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,768 KB
testcase_01 AC 15 ms
7,828 KB
testcase_02 AC 15 ms
7,980 KB
testcase_03 AC 15 ms
7,864 KB
testcase_04 AC 15 ms
7,860 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 42 ms
15,744 KB
testcase_10 AC 34 ms
13,264 KB
testcase_11 AC 35 ms
13,792 KB
testcase_12 AC 95 ms
29,804 KB
testcase_13 AC 94 ms
29,760 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
suzu = list(map(int, input().split()))
smax = suzu.index(n) + 1
ans = sum([i+1 for i in range(n)]) - smax*2
if ans < 0:
    ans = 0
print (ans)
0