結果

問題 No.1544 [Cherry 2nd Tune C] Synchroscope
ユーザー wesoweeenwesoweeen
提出日時 2021-06-24 23:08:10
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 1,397 ms / 2,000 ms
コード長 306 bytes
コンパイル時間 103 ms
コンパイル使用メモリ 10,720 KB
実行使用メモリ 399,388 KB
最終ジャッジ日時 2023-09-07 13:28:53
合計ジャッジ時間 21,422 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,812 KB
testcase_01 AC 14 ms
7,932 KB
testcase_02 AC 16 ms
7,776 KB
testcase_03 AC 66 ms
103,096 KB
testcase_04 AC 126 ms
230,688 KB
testcase_05 AC 85 ms
149,256 KB
testcase_06 AC 108 ms
195,280 KB
testcase_07 AC 106 ms
188,252 KB
testcase_08 AC 76 ms
124,348 KB
testcase_09 AC 25 ms
21,024 KB
testcase_10 AC 102 ms
184,360 KB
testcase_11 AC 66 ms
113,892 KB
testcase_12 AC 58 ms
97,960 KB
testcase_13 AC 25 ms
22,712 KB
testcase_14 AC 134 ms
251,692 KB
testcase_15 AC 153 ms
295,112 KB
testcase_16 AC 59 ms
93,484 KB
testcase_17 AC 39 ms
58,836 KB
testcase_18 AC 22 ms
19,336 KB
testcase_19 AC 27 ms
28,944 KB
testcase_20 AC 126 ms
244,568 KB
testcase_21 AC 37 ms
51,164 KB
testcase_22 AC 23 ms
23,492 KB
testcase_23 AC 235 ms
399,308 KB
testcase_24 AC 234 ms
399,316 KB
testcase_25 AC 231 ms
399,308 KB
testcase_26 AC 235 ms
399,256 KB
testcase_27 AC 238 ms
399,372 KB
testcase_28 AC 260 ms
399,176 KB
testcase_29 AC 229 ms
399,300 KB
testcase_30 AC 234 ms
399,388 KB
testcase_31 AC 224 ms
399,296 KB
testcase_32 AC 227 ms
399,312 KB
testcase_33 AC 1,397 ms
398,672 KB
testcase_34 AC 15 ms
7,764 KB
testcase_35 AC 15 ms
7,848 KB
testcase_36 AC 16 ms
8,344 KB
testcase_37 AC 16 ms
8,428 KB
testcase_38 AC 1,388 ms
397,788 KB
testcase_39 AC 1,307 ms
398,356 KB
testcase_40 AC 1,302 ms
397,556 KB
testcase_41 AC 1,307 ms
398,408 KB
testcase_42 AC 1,308 ms
391,168 KB
testcase_43 AC 1,220 ms
375,372 KB
testcase_44 AC 1,236 ms
379,660 KB
testcase_45 AC 1,302 ms
392,648 KB
testcase_46 AC 1,265 ms
382,500 KB
testcase_47 AC 1,271 ms
387,368 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    N, M = map(int, input().split())
    A = list(map(int,(input().split()))) * M
    B = list(map(int,(input().split()))) * N
    
    for i in range(N * M):
        if A[i] == B[i]:
            print(i + 1)
            return
    else:
        print(-1)

if __name__ == '__main__':
    main()
0