結果
問題 |
No.1250 汝は倍数なりや?
|
ユーザー |
![]() |
提出日時 | 2021-03-11 01:29:29 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 380 bytes |
コンパイル時間 | 536 ms |
コンパイル使用メモリ | 71,024 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-12 16:00:45 |
合計ジャッジ時間 | 2,688 ms |
ジャッジサーバーID (参考情報) |
judge / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 28 WA * 21 |
ソースコード
#include <iostream> #include <vector> using namespace std; using ll = long long int; int main(){ ll n, h; cin >> n >> h; vector<ll> a(n); for(auto &p: a) cin >> p; string ans = "NO"; for(auto &p: a){ if(p % h == 0) ans = "YES"; if(p == 0){ ans = "NO"; break; } } cout << ans << endl; return 0; }