結果
問題 |
No.2254 Reverse Only
|
ユーザー |
|
提出日時 | 2023-03-24 23:22:47 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 330 bytes |
コンパイル時間 | 150 ms |
コンパイル使用メモリ | 82,312 KB |
実行使用メモリ | 115,756 KB |
最終ジャッジ日時 | 2024-09-18 17:37:31 |
合計ジャッジ時間 | 6,295 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 39 WA * 8 |
ソースコード
n,k = map(int,input().split()) a = list(map(int,input().split())) b = list(map(int,input().split())) if a== b: print('Yes') exit() if k == n and a == b[:-1] or a == b: print('Yes') exit() if k >= n : print('No') exit() if sorted(a) == sorted(b): print('Yes') exit() print('No')