結果

問題 No.482 あなたの名は
ユーザー jamadjamad
提出日時 2017-08-30 04:07:33
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 153 bytes
コンパイル時間 79 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 36,484 KB
最終ジャッジ日時 2024-04-24 05:28:03
合計ジャッジ時間 5,872 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 AC 27 ms
10,752 KB
testcase_03 AC 26 ms
10,624 KB
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
testcase_10 RE -
testcase_11 RE -
testcase_12 RE -
testcase_13 RE -
testcase_14 RE -
testcase_15 TLE -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

f=lambda:map(int,input().split())
N,K=f()
D=list(f())
for i in range(N):
 while D[i]-1!=i:j=D[i]-1;D[i],D[j]=D[j],j;K-=1
print('YNEOS'[K<0 or K%2!=0::2])
0