結果
問題 |
No.1250 汝は倍数なりや?
|
ユーザー |
![]() |
提出日時 | 2020-10-17 12:01:37 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 99 ms / 1,000 ms |
コード長 | 339 bytes |
コンパイル時間 | 1,946 ms |
コンパイル使用メモリ | 193,308 KB |
最終ジャッジ日時 | 2025-01-15 10:39:47 |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 49 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define rep(i,n) for(int i = 0; i < (n); i++) typedef long long ll; typedef long double ld; typedef pair<int,int> P; int main() { int n, h; cin >> n >> h; ll ok = 1; rep(i,n) { int a; cin >> a; (ok *= a % h) %= h; } cout << (!ok ? "YES" : "NO") << endl; return 0; }