結果

問題 No.482 あなたの名は
ユーザー _____TAB__________TAB_____
提出日時 2017-02-23 14:17:48
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 170 bytes
コンパイル時間 637 ms
コンパイル使用メモリ 10,628 KB
実行使用メモリ 29,956 KB
最終ジャッジ日時 2023-08-30 21:23:35
合計ジャッジ時間 4,502 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,820 KB
testcase_01 WA -
testcase_02 AC 15 ms
7,696 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 15 ms
7,752 KB
testcase_08 AC 15 ms
7,780 KB
testcase_09 WA -
testcase_10 AC 15 ms
7,772 KB
testcase_11 WA -
testcase_12 AC 15 ms
7,780 KB
testcase_13 AC 15 ms
7,796 KB
testcase_14 WA -
testcase_15 AC 110 ms
29,784 KB
testcase_16 AC 111 ms
29,904 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 112 ms
29,812 KB
testcase_20 WA -
testcase_21 AC 113 ms
29,828 KB
testcase_22 WA -
testcase_23 AC 112 ms
29,796 KB
testcase_24 AC 112 ms
29,828 KB
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 AC 116 ms
29,936 KB
testcase_30 WA -
権限があれば一括ダウンロードができます

ソースコード

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