結果

問題 No.1687 What the Heck?
ユーザー iroharisan
提出日時 2021-09-25 00:13:44
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 85 bytes
コンパイル時間 141 ms
コンパイル使用メモリ 81,848 KB
実行使用メモリ 103,068 KB
最終ジャッジ日時 2024-07-05 11:40:43
合計ジャッジ時間 2,112 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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