結果

問題 No.1544 [Cherry 2nd Tune C] Synchroscope
ユーザー otsunekootsuneko
提出日時 2021-06-11 21:53:35
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 294 bytes
コンパイル時間 261 ms
コンパイル使用メモリ 87,116 KB
実行使用メモリ 154,452 KB
最終ジャッジ日時 2023-08-21 12:14:44
合計ジャッジ時間 6,364 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,260 KB
testcase_01 AC 71 ms
71,352 KB
testcase_02 AC 70 ms
71,040 KB
testcase_03 AC 94 ms
122,232 KB
testcase_04 AC 96 ms
135,364 KB
testcase_05 AC 93 ms
126,708 KB
testcase_06 AC 94 ms
131,584 KB
testcase_07 AC 93 ms
129,012 KB
testcase_08 AC 90 ms
124,544 KB
testcase_09 AC 87 ms
115,112 KB
testcase_10 AC 93 ms
131,184 KB
testcase_11 AC 90 ms
118,860 KB
testcase_12 AC 89 ms
114,328 KB
testcase_13 AC 86 ms
107,756 KB
testcase_14 AC 93 ms
139,256 KB
testcase_15 AC 96 ms
143,432 KB
testcase_16 AC 89 ms
115,076 KB
testcase_17 AC 85 ms
104,944 KB
testcase_18 AC 82 ms
94,500 KB
testcase_19 AC 82 ms
95,436 KB
testcase_20 AC 93 ms
136,932 KB
testcase_21 AC 85 ms
108,896 KB
testcase_22 AC 82 ms
99,364 KB
testcase_23 AC 100 ms
154,448 KB
testcase_24 AC 100 ms
154,452 KB
testcase_25 AC 100 ms
154,180 KB
testcase_26 AC 97 ms
154,216 KB
testcase_27 AC 99 ms
154,216 KB
testcase_28 AC 98 ms
154,296 KB
testcase_29 AC 100 ms
154,436 KB
testcase_30 AC 99 ms
154,296 KB
testcase_31 AC 97 ms
154,180 KB
testcase_32 AC 100 ms
154,148 KB
testcase_33 AC 99 ms
154,140 KB
testcase_34 AC 69 ms
71,180 KB
testcase_35 AC 70 ms
71,404 KB
testcase_36 WA -
testcase_37 AC 86 ms
114,636 KB
testcase_38 WA -
testcase_39 WA -
testcase_40 WA -
testcase_41 WA -
testcase_42 WA -
testcase_43 WA -
testcase_44 WA -
testcase_45 WA -
testcase_46 WA -
testcase_47 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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