結果
| 問題 | No.482 あなたの名は |
| コンテスト | |
| ユーザー |
hanorver
|
| 提出日時 | 2017-03-03 22:35:37 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 161 bytes |
| 記録 | |
| コンパイル時間 | 614 ms |
| コンパイル使用メモリ | 20,956 KB |
| 実行使用メモリ | 50,900 KB |
| 最終ジャッジ日時 | 2026-03-06 11:52:14 |
| 合計ジャッジ時間 | 92,059 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 TLE * 2 |
| other | AC * 1 TLE * 27 |
コンパイルメッセージ
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