結果
| 問題 | No.482 あなたの名は |
| コンテスト | |
| ユーザー |
👑 Kazun
|
| 提出日時 | 2020-06-02 03:44:40 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
RE
不安定
|
| 実行時間 | - |
| コード長 | 249 bytes |
| 記録 | |
| コンパイル時間 | 61 ms |
| コンパイル使用メモリ | 82,420 KB |
| 実行使用メモリ | 74,792 KB |
| 最終ジャッジ日時 | 2026-09-28 09:45:18 |
| 合計ジャッジ時間 | 4,223 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge4_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 28 |
ソースコード
def f(s):
return int(s)-1
from sympy.combinatorics import Permutation
N,K=map(int,input().split())
D=list(map(f,input().split()))
p=Permutation(D)
L=len(p.transpositions())
if (L<=K) and ((K-L)%2==0):
print("YES")
else:
print("NO")
Kazun