結果
問題 |
No.1250 汝は倍数なりや?
|
ユーザー |
![]() |
提出日時 | 2020-10-09 21:47:10 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 283 bytes |
コンパイル時間 | 2,340 ms |
コンパイル使用メモリ | 191,600 KB |
最終ジャッジ日時 | 2025-01-15 04:23:14 |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 2 |
other | AC * 10 WA * 39 |
ソースコード
#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; for(ll i=0;i<n;i++){ cin>>a[i]; p*=a[i]; } if(p%h==0) cout<<"YES YES"; else cout<<"NO"; }