結果
問題 |
No.3109 Swap members
|
ユーザー |
|
提出日時 | 2025-04-19 14:42:04 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 226 bytes |
コンパイル時間 | 176 ms |
コンパイル使用メモリ | 12,160 KB |
実行使用メモリ | 25,252 KB |
最終ジャッジ日時 | 2025-04-19 14:42:14 |
合計ジャッジ時間 | 4,561 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 4 TLE * 1 -- * 47 |
ソースコード
n, k = map(int, input().split()) s = [input() for _ in range(n)] canSwap = True for i in range(n): if i - s.index(input()) % k != 0: canSwap = False break if canSwap: print("Yes") else: print("No")