結果
問題 | No.482 あなたの名は |
ユーザー |
👑 ![]() |
提出日時 | 2020-06-02 03:44:40 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 249 bytes |
コンパイル時間 | 200 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 64,896 KB |
最終ジャッジ日時 | 2024-11-23 00:09:37 |
合計ジャッジ時間 | 4,456 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 3 |
other | RE * 28 |
ソースコード
def f(s):return int(s)-1from sympy.combinatorics import PermutationN,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")