結果

問題 No.2811 Calculation Within Sequence
ユーザー hato336hato336
提出日時 2024-07-19 21:23:23
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 260 ms / 2,000 ms
コード長 520 bytes
コンパイル時間 212 ms
コンパイル使用メモリ 81,976 KB
実行使用メモリ 130,072 KB
最終ジャッジ日時 2024-07-19 21:23:35
合計ジャッジ時間 11,293 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
85,800 KB
testcase_01 AC 125 ms
85,720 KB
testcase_02 AC 131 ms
85,512 KB
testcase_03 AC 206 ms
127,024 KB
testcase_04 AC 227 ms
127,260 KB
testcase_05 AC 207 ms
126,984 KB
testcase_06 AC 216 ms
127,264 KB
testcase_07 AC 221 ms
126,896 KB
testcase_08 AC 219 ms
127,224 KB
testcase_09 AC 217 ms
127,052 KB
testcase_10 AC 260 ms
126,792 KB
testcase_11 AC 252 ms
127,172 KB
testcase_12 AC 260 ms
127,120 KB
testcase_13 AC 258 ms
126,956 KB
testcase_14 AC 207 ms
127,132 KB
testcase_15 AC 219 ms
127,008 KB
testcase_16 AC 213 ms
127,208 KB
testcase_17 AC 200 ms
127,172 KB
testcase_18 AC 245 ms
127,016 KB
testcase_19 AC 230 ms
127,040 KB
testcase_20 AC 207 ms
127,020 KB
testcase_21 AC 218 ms
127,092 KB
testcase_22 AC 208 ms
127,180 KB
testcase_23 AC 223 ms
128,272 KB
testcase_24 AC 190 ms
125,868 KB
testcase_25 AC 135 ms
100,556 KB
testcase_26 AC 150 ms
100,928 KB
testcase_27 AC 189 ms
130,072 KB
testcase_28 AC 131 ms
92,540 KB
testcase_29 AC 168 ms
115,436 KB
testcase_30 AC 189 ms
120,304 KB
testcase_31 AC 176 ms
117,584 KB
testcase_32 AC 133 ms
94,988 KB
testcase_33 AC 176 ms
116,176 KB
testcase_34 AC 173 ms
126,428 KB
testcase_35 AC 139 ms
104,324 KB
testcase_36 AC 171 ms
116,680 KB
testcase_37 AC 150 ms
108,836 KB
testcase_38 AC 159 ms
111,940 KB
testcase_39 AC 151 ms
110,104 KB
testcase_40 AC 172 ms
121,312 KB
testcase_41 AC 165 ms
127,744 KB
testcase_42 AC 143 ms
104,320 KB
testcase_43 AC 152 ms
112,280 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import collections,sys,math,functools,operator,itertools,bisect,heapq,decimal,string,time,random
#sys.setrecursionlimit(10**9)
#sys.set_int_max_str_digits(0)
#input = sys.stdin.readline
#n = int(input())
#
#alist = []
#s = input()
n,m = map(int,input().split())
#for i in range(n):
#    alist.append(list(map(int,input().split())))
alist = list(map(int,input().split()))
blist = list(map(int,input().split()))
x = functools.reduce(math.gcd,alist)
for i in blist:
    if i % x != 0:
        exit(print('No'))
print('Yes')
0