結果
問題 |
No.3218 Night Equation
|
ユーザー |
![]() |
提出日時 | 2025-06-19 20:47:24 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 13 ms / 2,000 ms |
コード長 | 356 bytes |
コンパイル時間 | 1,789 ms |
コンパイル使用メモリ | 194,460 KB |
実行使用メモリ | 7,844 KB |
最終ジャッジ日時 | 2025-07-02 19:54:48 |
合計ジャッジ時間 | 3,199 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 29 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll = long long; int main() { cin.tie(nullptr); ios::sync_with_stdio(false); int N; cin >> N; bool zero = true; for (int i = 0; i < N; i++) { ll a; cin >> a; zero &= a == 0; } if (zero) cout << "No" << endl; else cout << "Yes" << endl; }