結果

問題 No.1544 [Cherry 2nd Tune C] Synchroscope
ユーザー otsunekootsuneko
提出日時 2021-06-11 21:53:17
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 292 bytes
コンパイル時間 456 ms
コンパイル使用メモリ 87,180 KB
実行使用メモリ 84,348 KB
最終ジャッジ日時 2023-08-21 12:14:28
合計ジャッジ時間 5,617 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,216 KB
testcase_01 AC 71 ms
71,376 KB
testcase_02 AC 71 ms
71,240 KB
testcase_03 AC 78 ms
80,544 KB
testcase_04 AC 79 ms
81,896 KB
testcase_05 AC 78 ms
81,244 KB
testcase_06 AC 80 ms
81,468 KB
testcase_07 AC 79 ms
81,340 KB
testcase_08 AC 80 ms
80,744 KB
testcase_09 AC 77 ms
79,616 KB
testcase_10 AC 79 ms
81,516 KB
testcase_11 AC 78 ms
80,208 KB
testcase_12 AC 79 ms
79,796 KB
testcase_13 AC 76 ms
79,208 KB
testcase_14 AC 79 ms
82,292 KB
testcase_15 AC 80 ms
82,908 KB
testcase_16 AC 77 ms
80,252 KB
testcase_17 AC 77 ms
78,724 KB
testcase_18 AC 75 ms
78,144 KB
testcase_19 AC 76 ms
77,736 KB
testcase_20 AC 79 ms
81,932 KB
testcase_21 AC 78 ms
79,176 KB
testcase_22 AC 77 ms
78,364 KB
testcase_23 AC 79 ms
83,704 KB
testcase_24 AC 80 ms
83,708 KB
testcase_25 AC 79 ms
84,064 KB
testcase_26 AC 80 ms
83,692 KB
testcase_27 AC 78 ms
83,804 KB
testcase_28 AC 79 ms
84,128 KB
testcase_29 AC 78 ms
83,824 KB
testcase_30 AC 78 ms
83,736 KB
testcase_31 AC 79 ms
83,652 KB
testcase_32 AC 80 ms
83,692 KB
testcase_33 AC 82 ms
83,928 KB
testcase_34 AC 71 ms
71,448 KB
testcase_35 AC 71 ms
71,144 KB
testcase_36 WA -
testcase_37 AC 78 ms
79,440 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