結果
問題 | No.1250 汝は倍数なりや? |
ユーザー |
![]() |
提出日時 | 2020-10-10 04:07:10 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 90 ms / 1,000 ms |
コード長 | 304 bytes |
コンパイル時間 | 1,924 ms |
コンパイル使用メモリ | 193,168 KB |
最終ジャッジ日時 | 2025-01-15 06:13:11 |
ジャッジサーバーID (参考情報) |
judge3 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 49 |
ソースコード
#include <iostream> #include <bits/stdc++.h> using namespace std; #define ll long long int main() { ll n,h; cin>>n>>h; ll a[n]; ll p=1; ll oo=0; for(ll i=0;i<n;i++){ cin>>a[i]; p*=a[i]; p%=h; } if(p==0) cout<<"YES"; else cout<<"NO"; }