結果
問題 |
No.1250 汝は倍数なりや?
|
ユーザー |
![]() |
提出日時 | 2023-05-20 22:55:13 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 328 bytes |
コンパイル時間 | 704 ms |
コンパイル使用メモリ | 65,792 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-21 11:48:11 |
合計ジャッジ時間 | 4,214 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 34 WA * 15 |
ソースコード
#include <iostream> #include <vector> using namespace std; #define yesif(x) cout << ((x) ? "YES": "NO") << endl #define rep(i,n) for(int i = 0;i<n;i++) int main() { int n,h;cin>>n>>h; long long product =1; rep(i,n){ int a; cin>>a; product*=a%h; } yesif(product%h==0); return 0; }