結果

問題 No.1544 [Cherry 2nd Tune C] Synchroscope
ユーザー otsunekootsuneko
提出日時 2021-06-11 21:54:25
言語 PyPy3
(7.3.15)
結果
MLE  
実行時間 -
コード長 300 bytes
コンパイル時間 278 ms
コンパイル使用メモリ 87,016 KB
実行使用メモリ 842,896 KB
最終ジャッジ日時 2023-08-21 12:16:37
合計ジャッジ時間 9,303 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,648 KB
testcase_01 AC 76 ms
75,868 KB
testcase_02 AC 71 ms
72,700 KB
testcase_03 MLE -
testcase_04 MLE -
testcase_05 MLE -
testcase_06 MLE -
testcase_07 MLE -
testcase_08 MLE -
testcase_09 AC 223 ms
466,432 KB
testcase_10 MLE -
testcase_11 AC 254 ms
506,020 KB
testcase_12 AC 214 ms
459,524 KB
testcase_13 AC 170 ms
396,072 KB
testcase_14 MLE -
testcase_15 MLE -
testcase_16 AC 287 ms
465,688 KB
testcase_17 AC 157 ms
363,872 KB
testcase_18 AC 130 ms
259,580 KB
testcase_19 AC 136 ms
270,240 KB
testcase_20 MLE -
testcase_21 AC 174 ms
405,284 KB
testcase_22 AC 147 ms
311,204 KB
testcase_23 MLE -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
testcase_31 -- -
testcase_32 -- -
testcase_33 -- -
testcase_34 -- -
testcase_35 -- -
testcase_36 -- -
testcase_37 -- -
testcase_38 -- -
testcase_39 -- -
testcase_40 -- -
testcase_41 -- -
testcase_42 -- -
testcase_43 -- -
testcase_44 -- -
testcase_45 -- -
testcase_46 -- -
testcase_47 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

N,M = map(int,input().split())
A = list(map(int,input().split()))
B = list(map(int,input().split()))

A2 = A*10000
B2 = B*10000
ans = 10**18
for i in range(min(N*10000,M*10000)):
    if A2[i] == B2[i]:
        ans = i+1
        break
if ans == 10**18:
    print(-1)
else:
    print(ans)
0