結果
問題 |
No.482 あなたの名は
|
ユーザー |
![]() |
提出日時 | 2017-03-03 22:37:00 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 182 ms / 2,000 ms |
コード長 | 161 bytes |
コンパイル時間 | 296 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 29,676 KB |
最終ジャッジ日時 | 2024-06-22 05:52:37 |
合計ジャッジ時間 | 4,657 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 28 |
コンパイルメッセージ
Main.py:4: SyntaxWarning: invalid decimal literal else:print("NO"if b%2or b<0else"YES") Main.py:4: SyntaxWarning: invalid decimal literal else:print("NO"if b%2or b<0else"YES")
ソースコード
d=lambda:map(int,input().split());a,b=d();c=list(d()) for i in range(a): while c[i]!=i+1:b-=1;f=c[i]-1;c[f],c[i]=c[i],c[f] else:print("NO"if b%2or b<0else"YES")