結果
| 問題 | No.482 あなたの名は |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-08-30 01:01:04 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 178 bytes |
| 記録 | |
| コンパイル時間 | 570 ms |
| コンパイル使用メモリ | 20,824 KB |
| 実行使用メモリ | 34,500 KB |
| 最終ジャッジ日時 | 2026-05-06 13:17:48 |
| 合計ジャッジ時間 | 6,030 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 14 WA * 14 |
ソースコード
N,K=map(int,input().split())
D=[ x-1 for x in map(int,input().split())]
Z=[int(D[i]==i) for i in range(N)].count(0)
swaptime=Z//2
print(('YES','NO')[(K-swaptime)%2==1])