結果

問題 No.1544 [Cherry 2nd Tune C] Synchroscope
ユーザー HAGI_TAROHAGI_TARO
提出日時 2021-08-28 16:20:23
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 141 ms / 2,000 ms
コード長 190 bytes
コンパイル時間 154 ms
コンパイル使用メモリ 82,404 KB
実行使用メモリ 62,200 KB
最終ジャッジ日時 2024-05-01 16:00:30
合計ジャッジ時間 4,803 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
52,428 KB
testcase_01 AC 35 ms
52,012 KB
testcase_02 AC 35 ms
52,564 KB
testcase_03 AC 43 ms
60,808 KB
testcase_04 AC 42 ms
61,676 KB
testcase_05 AC 43 ms
60,568 KB
testcase_06 AC 41 ms
61,384 KB
testcase_07 AC 42 ms
60,984 KB
testcase_08 AC 42 ms
61,040 KB
testcase_09 AC 43 ms
60,140 KB
testcase_10 AC 39 ms
60,036 KB
testcase_11 AC 40 ms
59,600 KB
testcase_12 AC 42 ms
59,972 KB
testcase_13 AC 42 ms
59,856 KB
testcase_14 AC 43 ms
61,788 KB
testcase_15 AC 43 ms
60,416 KB
testcase_16 AC 42 ms
60,324 KB
testcase_17 AC 43 ms
60,220 KB
testcase_18 AC 42 ms
59,408 KB
testcase_19 AC 42 ms
59,216 KB
testcase_20 AC 42 ms
61,220 KB
testcase_21 AC 42 ms
59,772 KB
testcase_22 AC 41 ms
60,400 KB
testcase_23 AC 42 ms
60,788 KB
testcase_24 AC 42 ms
61,848 KB
testcase_25 AC 43 ms
61,036 KB
testcase_26 AC 43 ms
61,560 KB
testcase_27 AC 44 ms
61,044 KB
testcase_28 AC 42 ms
60,732 KB
testcase_29 AC 44 ms
61,000 KB
testcase_30 AC 43 ms
60,744 KB
testcase_31 AC 42 ms
61,424 KB
testcase_32 AC 42 ms
62,200 KB
testcase_33 AC 141 ms
61,064 KB
testcase_34 AC 36 ms
52,904 KB
testcase_35 AC 36 ms
51,812 KB
testcase_36 AC 42 ms
59,612 KB
testcase_37 AC 41 ms
60,664 KB
testcase_38 AC 141 ms
61,232 KB
testcase_39 AC 135 ms
60,788 KB
testcase_40 AC 137 ms
60,400 KB
testcase_41 AC 136 ms
60,740 KB
testcase_42 AC 134 ms
61,876 KB
testcase_43 AC 132 ms
60,536 KB
testcase_44 AC 132 ms
61,052 KB
testcase_45 AC 134 ms
61,780 KB
testcase_46 AC 135 ms
61,768 KB
testcase_47 AC 131 ms
61,584 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,m = map(int,input().split())
A = list(map(int,input().split()))
B = list(map(int,input().split()))
for i in range(n*m):
    if A[i%n] == B[i%m]:
        print(i+1)
        exit()
print(-1)
0