結果
| 問題 | No.1687 What the Heck? |
| コンテスト | |
| ユーザー |
momoyuu
|
| 提出日時 | 2022-03-27 16:18:37 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 305 bytes |
| 記録 | |
| コンパイル時間 | 264 ms |
| コンパイル使用メモリ | 81,460 KB |
| 実行使用メモリ | 104,372 KB |
| 最終ジャッジ日時 | 2026-09-19 15:47:40 |
| 合計ジャッジ時間 | 3,088 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 1 |
| other | AC * 7 WA * 11 |
ソースコード
def main():
import sys
input = sys.stdin.readline
N = int(input())
P = list(map(int,input().split()))
count = 0
for i in range(N):
if P[i] != N:
count += i + 1
else:
count -= i + 1
print(count)
if __name__ == '__main__':
main()
momoyuu