結果
| 問題 | No.1687 What the Heck? |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-09-26 08:21:43 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 117 bytes |
| 記録 | |
| コンパイル時間 | 311 ms |
| コンパイル使用メモリ | 85,504 KB |
| 実行使用メモリ | 101,504 KB |
| 最終ジャッジ日時 | 2026-03-27 00:20:03 |
| 合計ジャッジ時間 | 2,064 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)