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