結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,200 KB
testcase_01 AC 70 ms
71,216 KB
testcase_02 AC 70 ms
71,340 KB
testcase_03 AC 92 ms
122,340 KB
testcase_04 AC 93 ms
135,076 KB
testcase_05 AC 91 ms
126,532 KB
testcase_06 AC 91 ms
131,552 KB
testcase_07 AC 91 ms
128,920 KB
testcase_08 AC 90 ms
124,240 KB
testcase_09 AC 87 ms
115,132 KB
testcase_10 AC 93 ms
130,968 KB
testcase_11 AC 89 ms
119,060 KB
testcase_12 AC 86 ms
114,672 KB
testcase_13 AC 86 ms
107,904 KB
testcase_14 AC 94 ms
139,164 KB
testcase_15 AC 95 ms
143,220 KB
testcase_16 AC 86 ms
115,272 KB
testcase_17 AC 85 ms
104,556 KB
testcase_18 AC 80 ms
94,248 KB
testcase_19 AC 79 ms
95,312 KB
testcase_20 AC 91 ms
136,940 KB
testcase_21 AC 85 ms
109,056 KB
testcase_22 AC 84 ms
99,428 KB
testcase_23 AC 98 ms
154,116 KB
testcase_24 AC 98 ms
154,232 KB
testcase_25 AC 97 ms
154,284 KB
testcase_26 AC 97 ms
154,044 KB
testcase_27 AC 97 ms
154,172 KB
testcase_28 AC 97 ms
154,120 KB
testcase_29 AC 96 ms
154,128 KB
testcase_30 AC 96 ms
154,172 KB
testcase_31 AC 97 ms
154,140 KB
testcase_32 AC 96 ms
154,048 KB
testcase_33 AC 114 ms
154,148 KB
testcase_34 AC 71 ms
71,180 KB
testcase_35 AC 71 ms
71,300 KB
testcase_36 WA -
testcase_37 AC 83 ms
114,536 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*1000,M*1000)):
    if A2[i] == B2[i]:
        ans = i+1
        break
if ans == 10**18:
    print(-1)
else:
    print(ans)
0