結果

問題 No.1544 [Cherry 2nd Tune C] Synchroscope
ユーザー lllllll88938494
提出日時 2022-01-11 19:08:20
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 203 bytes
コンパイル時間 155 ms
コンパイル使用メモリ 82,372 KB
実行使用メモリ 62,592 KB
最終ジャッジ日時 2024-11-14 11:42:45
合計ジャッジ時間 5,174 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 1 WA * 47
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b=map(int,input().split())
aa=list(map(int,input().split()))
bb=list(map(int,input().split()))

cnt=1

while cnt <= 10**8:
    if aa[cnt%a]==bb[cnt%b]:
        print(cnt)
        break
    cnt+=1
    
0