結果
| 問題 |
No.482 あなたの名は
|
| コンテスト | |
| ユーザー |
hanorver
|
| 提出日時 | 2017-03-03 22:09:20 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 217 bytes |
| コンパイル時間 | 91 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 36,620 KB |
| 最終ジャッジ日時 | 2024-06-22 05:19:21 |
| 合計ジャッジ時間 | 4,455 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 8 WA * 4 TLE * 1 -- * 15 |
コンパイルメッセージ
Main.py:7: SyntaxWarning: invalid decimal literal
else:print("NO"if b%2else"YES")
ソースコード
d=lambda:map(int,input().split());a,b=d();c=list(d())
for i in range(b):
if i+1 not in c:print("NO");break
e=c.index(i+1);c[i],c[e]=c[e],c[i]
if e!=i:b-=1
if b==0:print("YES");break
else:print("NO"if b%2else"YES")
hanorver