結果
| 問題 |
No.1250 汝は倍数なりや?
|
| コンテスト | |
| ユーザー |
weaken
|
| 提出日時 | 2020-10-11 13:33:28 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 382 bytes |
| コンパイル時間 | 1,598 ms |
| コンパイル使用メモリ | 191,220 KB |
| 最終ジャッジ日時 | 2025-01-15 06:35:52 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 26 WA * 22 RE * 1 |
ソースコード
#include <bits/stdc++.h>
#define fastIO (cin.tie(0), cout.tie(0), ios::sync_with_stdio(false))
using namespace std;
int main() {
fastIO;
int n, h;
cin >> n >> h;
for (int i = 0, num; i < n; ++i) {
cin >> num;
if (h % num == 0) {
h /= num;
}
if (h == 1) {
cout << "YES" << '\n';
return 0;
}
}
cout << "NO" << '\n';
return 0;
}
weaken