結果
問題 |
No.2682 Visible Divisible
|
ユーザー |
|
提出日時 | 2025-07-15 21:45:44 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 248 bytes |
コンパイル時間 | 309 ms |
コンパイル使用メモリ | 82,904 KB |
実行使用メモリ | 114,996 KB |
最終ジャッジ日時 | 2025-07-15 21:45:53 |
合計ジャッジ時間 | 7,484 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | -- * 3 |
other | TLE * 1 -- * 13 |
ソースコード
def gcd(a,b): if b==0:return a return gcd(b,a%b) N,K = map(int,input().split()) A = list(input().split()) a = int(A[0]) for i in range(1,N): b = int(A[i]) d = gcd(a,b) a = a//d*b if a%K==0: print("Yes") else: print("No")