結果

問題 No.482 あなたの名は
ユーザー _____TAB_____
提出日時 2017-02-23 14:17:48
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 170 bytes
コンパイル時間 198 ms
コンパイル使用メモリ 12,032 KB
実行使用メモリ 29,236 KB
最終ジャッジ日時 2025-01-02 18:26:31
合計ジャッジ時間 4,586 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 12 WA * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

N, K = map(int, input().split())
D = [int(i) for i in input().split()]
d = 0
for i in range(N):
	if i + 1 != D[i]:
		d += 1
if not d % 2:
	print("YES")
else:
	print("NO")
0