結果
| 問題 | No.1687 What the Heck? |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-09-26 08:21:43 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 117 bytes |
| 記録 | |
| コンパイル時間 | 155 ms |
| コンパイル使用メモリ | 82,688 KB |
| 実行使用メモリ | 101,120 KB |
| 最終ジャッジ日時 | 2024-07-05 15:34:45 |
| 合計ジャッジ時間 | 2,030 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 7 WA * 11 |
ソースコード
N=int(input()) if N==1: print(0) exit() P=list(map(int,input().split())) idx=P.index(N)+1 print(N*(N+1)//2-2*idx)