結果

問題 No.1544 [Cherry 2nd Tune C] Synchroscope
ユーザー first_vilfirst_vil
提出日時 2021-06-14 14:00:09
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 456 ms / 2,000 ms
コード長 284 bytes
コンパイル時間 394 ms
コンパイル使用メモリ 87,048 KB
実行使用メモリ 466,820 KB
最終ジャッジ日時 2023-08-25 22:59:10
合計ジャッジ時間 12,509 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,096 KB
testcase_01 AC 72 ms
71,452 KB
testcase_02 AC 72 ms
71,228 KB
testcase_03 AC 108 ms
170,448 KB
testcase_04 AC 232 ms
298,480 KB
testcase_05 AC 114 ms
216,264 KB
testcase_06 AC 138 ms
262,936 KB
testcase_07 AC 129 ms
255,532 KB
testcase_08 AC 107 ms
191,600 KB
testcase_09 AC 80 ms
88,192 KB
testcase_10 AC 129 ms
251,636 KB
testcase_11 AC 107 ms
181,160 KB
testcase_12 AC 103 ms
165,384 KB
testcase_13 AC 80 ms
89,952 KB
testcase_14 AC 181 ms
319,112 KB
testcase_15 AC 323 ms
362,584 KB
testcase_16 AC 115 ms
160,536 KB
testcase_17 AC 90 ms
126,156 KB
testcase_18 AC 79 ms
86,852 KB
testcase_19 AC 83 ms
96,364 KB
testcase_20 AC 197 ms
312,220 KB
testcase_21 AC 87 ms
118,296 KB
testcase_22 AC 80 ms
90,968 KB
testcase_23 AC 378 ms
465,540 KB
testcase_24 AC 456 ms
466,524 KB
testcase_25 AC 261 ms
466,716 KB
testcase_26 AC 192 ms
466,616 KB
testcase_27 AC 191 ms
466,640 KB
testcase_28 AC 193 ms
466,604 KB
testcase_29 AC 191 ms
466,740 KB
testcase_30 AC 202 ms
466,692 KB
testcase_31 AC 185 ms
466,692 KB
testcase_32 AC 185 ms
466,768 KB
testcase_33 AC 260 ms
466,820 KB
testcase_34 AC 73 ms
71,124 KB
testcase_35 AC 72 ms
71,212 KB
testcase_36 AC 75 ms
75,556 KB
testcase_37 AC 75 ms
75,728 KB
testcase_38 AC 262 ms
465,280 KB
testcase_39 AC 262 ms
465,912 KB
testcase_40 AC 260 ms
464,796 KB
testcase_41 AC 261 ms
465,732 KB
testcase_42 AC 275 ms
458,444 KB
testcase_43 AC 251 ms
442,828 KB
testcase_44 AC 253 ms
446,936 KB
testcase_45 AC 258 ms
459,960 KB
testcase_46 AC 254 ms
450,048 KB
testcase_47 AC 255 ms
454,672 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    import sys
    input=sys.stdin.buffer.readline
    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
    print(-1)
main()
0