結果
問題 |
No.2254 Reverse Only
|
ユーザー |
![]() |
提出日時 | 2025-06-12 19:36:49 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 536 bytes |
コンパイル時間 | 186 ms |
コンパイル使用メモリ | 82,156 KB |
実行使用メモリ | 159,140 KB |
最終ジャッジ日時 | 2025-06-12 19:37:05 |
合計ジャッジ時間 | 7,574 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 42 WA * 5 |
ソースコード
import sys from collections import Counter def main(): input = sys.stdin.read data = input().split() idx = 0 n = int(data[idx]) idx += 1 k = int(data[idx]) idx += 1 a = list(map(int, data[idx:idx+n])) idx += n b = list(map(int, data[idx:idx+n])) if k > n: if a == b: print("Yes") else: print("No") else: if Counter(a) == Counter(b): print("Yes") else: print("No") if __name__ == "__main__": main()