結果
問題 |
No.1395 Less Sweet Alchemy
|
ユーザー |
|
提出日時 | 2021-02-14 21:43:55 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 337 bytes |
コンパイル時間 | 2,580 ms |
コンパイル使用メモリ | 191,176 KB |
最終ジャッジ日時 | 2025-01-18 20:51:08 |
ジャッジサーバーID (参考情報) |
judge4 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 9 WA * 3 |
ソースコード
#define _USE_MATH_DEFINES #include <bits/stdc++.h> using namespace std; signed main() { ios::sync_with_stdio(false); cin.tie(0); int n, x; cin >> n >> x; bool yes = false; for (int i = 0; i < n; i++) { int a; cin >> a; if (a >= x) { yes = true; } } cout << (yes ? "Yes" : "No") << endl; return 0; }