結果
問題 | No.2811 Calculation Within Sequence |
ユーザー | hiro1729 |
提出日時 | 2024-07-19 21:22:01 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 173 ms / 2,000 ms |
コード長 | 221 bytes |
コンパイル時間 | 152 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 133,816 KB |
最終ジャッジ日時 | 2024-07-19 21:22:11 |
合計ジャッジ時間 | 7,410 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 33 ms
52,096 KB |
testcase_01 | AC | 34 ms
52,224 KB |
testcase_02 | AC | 35 ms
51,840 KB |
testcase_03 | AC | 152 ms
133,064 KB |
testcase_04 | AC | 150 ms
133,304 KB |
testcase_05 | AC | 142 ms
132,932 KB |
testcase_06 | AC | 166 ms
132,940 KB |
testcase_07 | AC | 158 ms
132,872 KB |
testcase_08 | AC | 149 ms
133,080 KB |
testcase_09 | AC | 150 ms
133,044 KB |
testcase_10 | AC | 153 ms
132,996 KB |
testcase_11 | AC | 159 ms
132,684 KB |
testcase_12 | AC | 152 ms
132,932 KB |
testcase_13 | AC | 139 ms
132,988 KB |
testcase_14 | AC | 133 ms
132,968 KB |
testcase_15 | AC | 159 ms
132,684 KB |
testcase_16 | AC | 138 ms
133,116 KB |
testcase_17 | AC | 127 ms
133,228 KB |
testcase_18 | AC | 143 ms
132,944 KB |
testcase_19 | AC | 173 ms
132,564 KB |
testcase_20 | AC | 135 ms
132,992 KB |
testcase_21 | AC | 134 ms
133,480 KB |
testcase_22 | AC | 132 ms
132,816 KB |
testcase_23 | AC | 140 ms
133,816 KB |
testcase_24 | AC | 115 ms
107,520 KB |
testcase_25 | AC | 69 ms
79,872 KB |
testcase_26 | AC | 61 ms
82,688 KB |
testcase_27 | AC | 111 ms
98,048 KB |
testcase_28 | AC | 49 ms
68,096 KB |
testcase_29 | AC | 93 ms
98,976 KB |
testcase_30 | AC | 96 ms
97,236 KB |
testcase_31 | AC | 105 ms
104,192 KB |
testcase_32 | AC | 49 ms
72,320 KB |
testcase_33 | AC | 86 ms
99,296 KB |
testcase_34 | AC | 97 ms
100,892 KB |
testcase_35 | AC | 61 ms
87,552 KB |
testcase_36 | AC | 90 ms
98,052 KB |
testcase_37 | AC | 76 ms
93,376 KB |
testcase_38 | AC | 105 ms
99,200 KB |
testcase_39 | AC | 72 ms
95,744 KB |
testcase_40 | AC | 92 ms
107,520 KB |
testcase_41 | AC | 90 ms
97,888 KB |
testcase_42 | AC | 78 ms
87,424 KB |
testcase_43 | AC | 81 ms
98,816 KB |
ソースコード
from math import gcd a, b = map(int, input().split()) T = list(map(int, input().split())) S = list(map(int, input().split())) g = T[0] for i in T[1:]: g = gcd(g, i) for i in S: if i % g: exit(print("No")) print("Yes")