結果
| 問題 |
No.1544 [Cherry 2nd Tune C] Synchroscope
|
| コンテスト | |
| ユーザー |
kozy
|
| 提出日時 | 2021-06-11 21:27:13 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 357 ms / 2,000 ms |
| コード長 | 180 bytes |
| コンパイル時間 | 349 ms |
| コンパイル使用メモリ | 82,148 KB |
| 実行使用メモリ | 452,416 KB |
| 最終ジャッジ日時 | 2024-12-14 22:20:13 |
| 合計ジャッジ時間 | 9,575 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 48 |
ソースコード
N,M=map(int,input().split())
L=list(map(int,input().split()))
R=list(map(int,input().split()))
K=L*M
S=R*N
for i in range(N*M):
if K[i]==S[i]:
print(i+1)
exit()
print(-1)
kozy