結果

問題 No.2836 Comment Out
ユーザー ooaiu
提出日時 2024-08-11 21:27:58
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 76 ms / 2,000 ms
コード長 482 bytes
コンパイル時間 2,635 ms
コンパイル使用メモリ 245,940 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-08-11 21:28:05
合計ジャッジ時間 6,724 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 52
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;

#ifdef LOCAL
#include "../algo/debug.hpp"
#else
#define debug(...) void(0)
#endif

void solve() {
    int n; cin >> n;
    vector<int> a(n);
    for(int i = 0; i < n; i++) cin >> a[i];
    int mn = *min_element(a.begin(), a.end());
    if(mn <= 1) {
        cout << "Yes" << endl;
    }else {
        cout << "No" << endl;
    }
}

int main() {
    int T = 1;
    // cin >> T;
    while (T--) {
        solve();
    }
    return 0;
}
0