結果
問題 | No.1687 What the Heck? |
ユーザー | tktk_snsn |
提出日時 | 2021-09-24 23:19:43 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 116 bytes |
コンパイル時間 | 186 ms |
コンパイル使用メモリ | 10,464 KB |
実行使用メモリ | 30,752 KB |
最終ジャッジ日時 | 2023-09-18 22:22:04 |
合計ジャッジ時間 | 2,125 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 16 ms
7,888 KB |
testcase_01 | WA | - |
testcase_02 | AC | 16 ms
7,888 KB |
testcase_03 | WA | - |
testcase_04 | AC | 15 ms
7,812 KB |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | AC | 37 ms
15,648 KB |
testcase_10 | AC | 30 ms
13,224 KB |
testcase_11 | AC | 32 ms
13,888 KB |
testcase_12 | AC | 80 ms
29,860 KB |
testcase_13 | AC | 78 ms
29,844 KB |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | WA | - |
ソースコード
N = int(input()) A = list(map(int, input().split())) i = A.index(N) ans = N * (N + 1) // 2 - 2 * (i + 1) print(ans)