結果

問題 No.1250 汝は倍数なりや?
ユーザー Tokuzoo
提出日時 2021-02-21 21:03:15
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 289 bytes
コンパイル時間 616 ms
コンパイル使用メモリ 63,104 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-19 18:22:41
合計ジャッジ時間 4,024 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 35 WA * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;

int main(){
    int n,h,ans;
    cin >> n >> h;
    ans = 1;
    int in;
    for(int i=0; i<n; i++){
        cin >> in;
        ans *= in;
    }
    if(ans % h == 0){
        cout << "YES" << endl;
    } else{
        cout << "NO" << endl;
    }
}
0