結果

問題 No.1250 汝は倍数なりや?
ユーザー Manuel1024
提出日時 2021-03-11 01:28:23
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 307 bytes
コンパイル時間 610 ms
コンパイル使用メモリ 69,376 KB
実行使用メモリ 6,816 KB
最終ジャッジ日時 2024-10-12 15:59:14
合計ジャッジ時間 3,820 ms
ジャッジサーバーID
(参考情報)
judge3 / judge
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 29 WA * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#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";
    }
    cout << ans << endl;
    return 0;
}
0