結果

問題 No.3218 Night Equation
コンテスト
ユーザー asmin
提出日時 2025-08-01 21:56:58
言語 C++17(gcc12)
(gcc 12.4.0 + boost 1.90.0)
コンパイル:
g++-12 -O2 -lm -std=c++17 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
AC  
実行時間 6 ms / 2,000 ms
+ 324µs
コード長 450 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,236 ms
コンパイル使用メモリ 199,868 KB
実行使用メモリ 5,888 KB
最終ジャッジ日時 2026-07-13 16:54:12
合計ジャッジ時間 3,022 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 29
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <bits/stdc++.h>
using namespace std;
using ll = long long;



void solve(){
    int N; cin >> N;
    bool ok = false;
    for(int i = 0; i < N; ++i){
        int A; cin >> A;
        if(A != 0) ok = true;
    }
    if(ok) cout << "Yes\n";
    else cout << "No\n";
}


int main(){
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    cout << setprecision(10) << fixed;


    int T;
    T = 1;
    //cin >> T;
    for(;T--;) solve();
}

0