結果

問題 No.1544 [Cherry 2nd Tune C] Synchroscope
ユーザー 👑 rin204rin204
提出日時 2021-08-05 13:25:23
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 330 ms / 2,000 ms
コード長 214 bytes
コンパイル時間 247 ms
コンパイル使用メモリ 87,228 KB
実行使用メモリ 467,348 KB
最終ジャッジ日時 2023-10-14 21:36:11
合計ジャッジ時間 9,581 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,044 KB
testcase_01 AC 70 ms
71,088 KB
testcase_02 AC 70 ms
71,004 KB
testcase_03 AC 105 ms
170,756 KB
testcase_04 AC 143 ms
298,672 KB
testcase_05 AC 112 ms
216,528 KB
testcase_06 AC 126 ms
263,096 KB
testcase_07 AC 122 ms
255,796 KB
testcase_08 AC 109 ms
191,660 KB
testcase_09 AC 82 ms
88,364 KB
testcase_10 AC 125 ms
252,024 KB
testcase_11 AC 104 ms
181,228 KB
testcase_12 AC 98 ms
165,336 KB
testcase_13 AC 79 ms
90,052 KB
testcase_14 AC 141 ms
319,468 KB
testcase_15 AC 157 ms
362,504 KB
testcase_16 AC 97 ms
160,684 KB
testcase_17 AC 90 ms
126,132 KB
testcase_18 AC 78 ms
86,992 KB
testcase_19 AC 81 ms
96,480 KB
testcase_20 AC 140 ms
312,264 KB
testcase_21 AC 87 ms
118,852 KB
testcase_22 AC 81 ms
91,216 KB
testcase_23 AC 190 ms
466,724 KB
testcase_24 AC 186 ms
466,916 KB
testcase_25 AC 191 ms
467,228 KB
testcase_26 AC 186 ms
467,312 KB
testcase_27 AC 187 ms
466,836 KB
testcase_28 AC 212 ms
466,924 KB
testcase_29 AC 247 ms
467,348 KB
testcase_30 AC 190 ms
466,964 KB
testcase_31 AC 188 ms
466,920 KB
testcase_32 AC 191 ms
467,160 KB
testcase_33 AC 330 ms
467,024 KB
testcase_34 AC 69 ms
71,016 KB
testcase_35 AC 69 ms
71,024 KB
testcase_36 AC 71 ms
76,048 KB
testcase_37 AC 71 ms
75,872 KB
testcase_38 AC 270 ms
465,604 KB
testcase_39 AC 273 ms
466,064 KB
testcase_40 AC 269 ms
465,316 KB
testcase_41 AC 270 ms
466,340 KB
testcase_42 AC 268 ms
459,004 KB
testcase_43 AC 258 ms
443,384 KB
testcase_44 AC 258 ms
447,176 KB
testcase_45 AC 264 ms
460,336 KB
testcase_46 AC 259 ms
450,284 KB
testcase_47 AC 260 ms
454,896 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