結果
| 問題 |
No.482 あなたの名は
|
| コンテスト | |
| ユーザー |
hanorver
|
| 提出日時 | 2017-03-03 22:35:37 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 161 bytes |
| コンパイル時間 | 851 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 24,520 KB |
| 最終ジャッジ日時 | 2024-06-22 05:52:32 |
| 合計ジャッジ時間 | 6,827 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | TLE * 1 -- * 2 |
| other | -- * 28 |
コンパイルメッセージ
Main.py:5: SyntaxWarning: invalid decimal literal
else:print("NO"if b%2or b<0else"YES")
Main.py:5: 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):
f=c[i]
while f!=i+1:b-=1;c[f-1],c[i]=c[i],c[f-1]
else:print("NO"if b%2or b<0else"YES")
hanorver