結果
| 問題 | No.482 あなたの名は |
| コンテスト | |
| ユーザー |
hanorver
|
| 提出日時 | 2017-03-03 22:35:37 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 161 bytes |
| 記録 | |
| コンパイル時間 | 292 ms |
| コンパイル使用メモリ | 21,540 KB |
| 実行使用メモリ | 22,264 KB |
| 最終ジャッジ日時 | 2026-07-26 21:06:01 |
| 合計ジャッジ時間 | 7,158 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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