結果

問題 No.482 あなたの名は
ユーザー k-matsk-mats
提出日時 2017-02-10 22:38:33
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 223 bytes
コンパイル時間 340 ms
コンパイル使用メモリ 10,568 KB
実行使用メモリ 30,004 KB
最終ジャッジ日時 2023-08-27 22:39:50
合計ジャッジ時間 3,698 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,892 KB
testcase_01 AC 15 ms
7,928 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 15 ms
7,976 KB
testcase_05 WA -
testcase_06 AC 15 ms
7,828 KB
testcase_07 WA -
testcase_08 AC 15 ms
7,876 KB
testcase_09 WA -
testcase_10 AC 16 ms
7,828 KB
testcase_11 AC 15 ms
7,992 KB
testcase_12 WA -
testcase_13 AC 15 ms
7,828 KB
testcase_14 AC 15 ms
7,832 KB
testcase_15 AC 112 ms
29,868 KB
testcase_16 AC 112 ms
29,936 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 112 ms
29,800 KB
testcase_20 WA -
testcase_21 AC 112 ms
29,940 KB
testcase_22 AC 112 ms
29,888 KB
testcase_23 AC 113 ms
30,000 KB
testcase_24 AC 113 ms
29,940 KB
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 AC 114 ms
30,000 KB
testcase_29 WA -
testcase_30 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

n, k = [int(i) for i in input().split()]
d = [int(i) for i in input().split()]

cnt = 0
for i in range(len(d)):
    if d[i] != i + 1:
        cnt += 1

if cnt % 2 == 0 and k % 2 == 1:
    print('YES')
else:
    print('NO')
0