結果

問題 No.1544 [Cherry 2nd Tune C] Synchroscope
ユーザー otsunekootsuneko
提出日時 2021-06-11 21:53:17
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 292 bytes
コンパイル時間 373 ms
コンパイル使用メモリ 82,096 KB
実行使用メモリ 70,588 KB
最終ジャッジ日時 2024-05-08 17:33:09
合計ジャッジ時間 3,806 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
52,096 KB
testcase_01 AC 37 ms
51,584 KB
testcase_02 AC 36 ms
51,712 KB
testcase_03 AC 45 ms
64,000 KB
testcase_04 AC 45 ms
65,664 KB
testcase_05 AC 47 ms
65,152 KB
testcase_06 AC 49 ms
65,536 KB
testcase_07 AC 45 ms
65,152 KB
testcase_08 AC 44 ms
64,640 KB
testcase_09 AC 43 ms
63,232 KB
testcase_10 AC 47 ms
65,408 KB
testcase_11 AC 45 ms
64,000 KB
testcase_12 AC 45 ms
63,360 KB
testcase_13 AC 43 ms
62,760 KB
testcase_14 AC 47 ms
66,816 KB
testcase_15 AC 46 ms
66,560 KB
testcase_16 AC 46 ms
63,488 KB
testcase_17 AC 44 ms
62,336 KB
testcase_18 AC 43 ms
61,056 KB
testcase_19 AC 43 ms
61,184 KB
testcase_20 AC 45 ms
66,432 KB
testcase_21 AC 43 ms
62,336 KB
testcase_22 AC 44 ms
61,440 KB
testcase_23 AC 46 ms
68,608 KB
testcase_24 AC 44 ms
68,096 KB
testcase_25 AC 45 ms
68,352 KB
testcase_26 AC 47 ms
68,224 KB
testcase_27 AC 47 ms
68,480 KB
testcase_28 AC 46 ms
68,096 KB
testcase_29 AC 47 ms
68,224 KB
testcase_30 AC 49 ms
68,608 KB
testcase_31 AC 49 ms
68,224 KB
testcase_32 AC 48 ms
68,224 KB
testcase_33 AC 48 ms
68,224 KB
testcase_34 AC 38 ms
51,840 KB
testcase_35 AC 36 ms
51,840 KB
testcase_36 WA -
testcase_37 AC 43 ms
62,464 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*100
B2 = B*100
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