結果

問題 No.1687 What the Heck?
ユーザー iroharisan
提出日時 2021-09-25 00:15:09
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 85 bytes
コンパイル時間 196 ms
コンパイル使用メモリ 82,016 KB
実行使用メモリ 101,300 KB
最終ジャッジ日時 2024-07-05 11:41:22
合計ジャッジ時間 2,150 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 1
other AC * 7 WA * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
P=list(map(int,input().split()))
print((N*(N+1))//2-(P.index(N))*2-2)
0