結果

問題 No.1544 [Cherry 2nd Tune C] Synchroscope
ユーザー EnoEno
提出日時 2021-06-11 23:16:29
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 364 bytes
コンパイル時間 120 ms
コンパイル使用メモリ 10,652 KB
実行使用メモリ 616,020 KB
最終ジャッジ日時 2023-08-21 14:15:15
合計ジャッジ時間 48,005 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 131 ms
29,900 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 TLE -
testcase_05 WA -
testcase_06 TLE -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 TLE -
testcase_15 TLE -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 TLE -
testcase_21 WA -
testcase_22 WA -
testcase_23 TLE -
testcase_24 TLE -
testcase_25 TLE -
testcase_26 TLE -
testcase_27 TLE -
testcase_28 TLE -
testcase_29 TLE -
testcase_30 TLE -
testcase_31 TLE -
testcase_32 TLE -
testcase_33 TLE -
testcase_34 WA -
testcase_35 AC 129 ms
29,508 KB
testcase_36 WA -
testcase_37 AC 1,426 ms
420,048 KB
testcase_38 TLE -
testcase_39 TLE -
testcase_40 TLE -
testcase_41 TLE -
testcase_42 TLE -
testcase_43 TLE -
testcase_44 TLE -
testcase_45 TLE -
testcase_46 TLE -
testcase_47 MLE -
権限があれば一括ダウンロードができます

ソースコード

diff #

import numpy as np
N, M = map(int, input().split())
A = list(map(int, input().split()))
B = list(map(int, input().split()))

arrayA =np.array(list(A)*5000)
arrayB =np.array(list(B)*5000)

cnt=0
i=1
while i <=5000:
    if arrayA[i-1] == arrayB[i-1]:
        print(i)
        cnt=1
        break
    else:
        i += 1

if cnt == 1:
    print()
else:
    print(-1)
0