結果
問題 |
No.2811 Calculation Within Sequence
|
ユーザー |
![]() |
提出日時 | 2024-07-19 22:10:12 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 201 bytes |
コンパイル時間 | 328 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 29,296 KB |
最終ジャッジ日時 | 2024-07-19 22:10:23 |
合計ジャッジ時間 | 9,995 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | AC * 26 WA * 15 |
ソースコード
import math a,b=map(int,input().split()) T=0 for t in map(int,input().split()): T=math.gcd(T,t) S=0 for s in map(int,input().split()): S=math.gcd(S,s) if T%S==0: ans="Yes" else: ans="No" print(ans)