結果

問題 No.1544 [Cherry 2nd Tune C] Synchroscope
ユーザー 👑 rin204rin204
提出日時 2022-03-12 22:57:10
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 267 ms / 2,000 ms
コード長 214 bytes
コンパイル時間 512 ms
コンパイル使用メモリ 81,676 KB
実行使用メモリ 451,844 KB
最終ジャッジ日時 2023-10-17 08:55:23
合計ジャッジ時間 9,445 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
53,340 KB
testcase_01 AC 38 ms
53,340 KB
testcase_02 AC 37 ms
53,340 KB
testcase_03 AC 72 ms
154,428 KB
testcase_04 AC 153 ms
283,304 KB
testcase_05 AC 87 ms
200,400 KB
testcase_06 AC 101 ms
247,820 KB
testcase_07 AC 93 ms
239,504 KB
testcase_08 AC 75 ms
175,592 KB
testcase_09 AC 47 ms
72,104 KB
testcase_10 AC 92 ms
235,552 KB
testcase_11 AC 72 ms
165,248 KB
testcase_12 AC 69 ms
149,264 KB
testcase_13 AC 48 ms
73,968 KB
testcase_14 AC 144 ms
304,420 KB
testcase_15 AC 201 ms
347,604 KB
testcase_16 AC 71 ms
144,608 KB
testcase_17 AC 58 ms
110,136 KB
testcase_18 AC 48 ms
70,920 KB
testcase_19 AC 50 ms
80,376 KB
testcase_20 AC 115 ms
297,108 KB
testcase_21 AC 56 ms
102,432 KB
testcase_22 AC 49 ms
74,944 KB
testcase_23 AC 159 ms
451,640 KB
testcase_24 AC 155 ms
451,768 KB
testcase_25 AC 155 ms
451,764 KB
testcase_26 AC 155 ms
451,764 KB
testcase_27 AC 156 ms
451,764 KB
testcase_28 AC 158 ms
451,764 KB
testcase_29 AC 156 ms
451,764 KB
testcase_30 AC 154 ms
451,768 KB
testcase_31 AC 154 ms
451,768 KB
testcase_32 AC 156 ms
451,768 KB
testcase_33 AC 267 ms
451,844 KB
testcase_34 AC 38 ms
53,344 KB
testcase_35 AC 38 ms
53,344 KB
testcase_36 AC 42 ms
59,792 KB
testcase_37 AC 42 ms
59,792 KB
testcase_38 AC 243 ms
450,276 KB
testcase_39 AC 244 ms
450,900 KB
testcase_40 AC 248 ms
449,964 KB
testcase_41 AC 239 ms
450,900 KB
testcase_42 AC 237 ms
443,604 KB
testcase_43 AC 232 ms
427,880 KB
testcase_44 AC 233 ms
432,012 KB
testcase_45 AC 237 ms
445,148 KB
testcase_46 AC 233 ms
435,044 KB
testcase_47 AC 236 ms
439,668 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n, m = map(int, input().split())
alst = list(map(int, input().split())) * m
blst = list(map(int, input().split())) * n
for i in range(n * m):
    if alst[i] == blst[i]:
        print(i + 1)
        exit()
print(-1)
0