結果
問題 |
No.2811 Calculation Within Sequence
|
ユーザー |
![]() |
提出日時 | 2024-07-19 22:03:54 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 201 bytes |
コンパイル時間 | 185 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 29,164 KB |
最終ジャッジ日時 | 2024-07-19 22:04:07 |
合計ジャッジ時間 | 9,886 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 20 WA * 21 |
ソースコード
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(T,t) if T%S==0: ans="Yes" else: ans="No" print(ans)