結果

問題 No.2836 Comment Out
ユーザー tottoripapertottoripaper
提出日時 2024-08-29 11:41:19
言語 C++17(gcc12)
(gcc 12.3.0 + boost 1.87.0)
結果
AC  
実行時間 26 ms / 2,000 ms
コード長 423 bytes
コンパイル時間 2,406 ms
コンパイル使用メモリ 203,748 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-08-29 11:41:43
合計ジャッジ時間 7,182 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 52
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

int main(){
    std::cin.tie(nullptr);
    std::ios::sync_with_stdio(false);

    int N;
    std::cin >> N;

    std::vector<int> A(N);
    for(int i=0;i<N;i++){
        std::cin >> A[i];
    }

    bool ok = false;
    for(int i=0;i<N;i++){
        ok = ok || (A[i] <= 1);
    }
    
    if(ok){
        std::cout << "Yes" << std::endl;
    }else{
        std::cout << "No" << std::endl;
    }
}
0