結果

問題 No.1250 汝は倍数なりや?
ユーザー Manuel1024Manuel1024
提出日時 2021-03-11 01:29:29
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 380 bytes
コンパイル時間 558 ms
コンパイル使用メモリ 70,612 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-04-20 18:55:23
合計ジャッジ時間 2,917 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,248 KB
testcase_01 AC 2 ms
5,376 KB
testcase_02 AC 2 ms
5,376 KB
testcase_03 AC 1 ms
5,376 KB
testcase_04 AC 2 ms
5,376 KB
testcase_05 AC 2 ms
5,376 KB
testcase_06 AC 2 ms
5,376 KB
testcase_07 AC 1 ms
5,376 KB
testcase_08 AC 2 ms
5,376 KB
testcase_09 AC 1 ms
5,376 KB
testcase_10 AC 1 ms
5,376 KB
testcase_11 WA -
testcase_12 AC 1 ms
5,376 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 2 ms
5,376 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 1 ms
5,376 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 2 ms
5,376 KB
testcase_24 AC 2 ms
5,376 KB
testcase_25 AC 2 ms
5,376 KB
testcase_26 WA -
testcase_27 AC 1 ms
5,376 KB
testcase_28 WA -
testcase_29 AC 1 ms
5,376 KB
testcase_30 WA -
testcase_31 AC 2 ms
5,376 KB
testcase_32 WA -
testcase_33 AC 79 ms
5,376 KB
testcase_34 WA -
testcase_35 WA -
testcase_36 WA -
testcase_37 AC 42 ms
5,376 KB
testcase_38 AC 45 ms
5,376 KB
testcase_39 WA -
testcase_40 WA -
testcase_41 AC 55 ms
5,376 KB
testcase_42 AC 30 ms
5,376 KB
testcase_43 AC 68 ms
5,376 KB
testcase_44 AC 29 ms
5,376 KB
testcase_45 WA -
testcase_46 AC 24 ms
5,376 KB
testcase_47 WA -
testcase_48 AC 1 ms
5,376 KB
testcase_49 AC 1 ms
5,376 KB
testcase_50 WA -
testcase_51 AC 2 ms
5,376 KB
権限があれば一括ダウンロードができます

ソースコード

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";
        if(p == 0){
            ans = "NO";
            break;
        }
    }
    cout << ans << endl;
    return 0;
}
0