結果
問題 |
No.1544 [Cherry 2nd Tune C] Synchroscope
|
ユーザー |
![]() |
提出日時 | 2022-07-01 16:28:33 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 224 bytes |
コンパイル時間 | 300 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 817,980 KB |
最終ジャッジ日時 | 2024-11-25 20:57:49 |
合計ジャッジ時間 | 7,817 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 8 RE * 38 MLE * 2 |
ソースコード
import math n,m=map(int,input().split()) A=list(map(int,input().split())) B=list(map(int,input().split())) x=math.lcm(n,m) A=A*x B=B*x l=[] for i in range(x): if A[i]==B[i]: print(i+1) exit() print(-1)