結果
問題 |
No.3218 Night Equation
|
ユーザー |
![]() |
提出日時 | 2025-08-01 21:37:42 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 14 ms / 2,000 ms |
コード長 | 1,041 bytes |
コンパイル時間 | 1,177 ms |
コンパイル使用メモリ | 121,400 KB |
実行使用メモリ | 7,716 KB |
最終ジャッジ日時 | 2025-08-01 21:37:45 |
合計ジャッジ時間 | 2,590 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 29 |
ソースコード
#include <iostream> #include <iomanip> #include <cassert> #include <vector> #include <algorithm> #include <utility> #include <numeric> #include <tuple> #include <ranges> namespace ranges = std::ranges; namespace views = std::views; // #include "Src/Number/IntegerDivision.hpp" // #include "Src/Utility/BinarySearch.hpp" // #include "Src/Sequence/CompressedSequence.hpp" // #include "Src/Sequence/RunLengthEncoding.hpp" // #include "Src/Algebra/Group/AdditiveGroup.hpp" // #include "Src/DataStructure/FenwickTree/FenwickTree.hpp" // #include "Src/DataStructure/SegmentTree/SegmentTree.hpp" // #include "Src/DataStructure/DisjointSetUnion/DisjointSetUnion.hpp" // using namespace zawa; // #include "atcoder/modint" // using mint = atcoder::modint998244353; using namespace std; int main() { cin.tie(0); cout.tie(0); ios::sync_with_stdio(0); int N; cin >> N; vector<int> A(N); for (auto& a : A) cin >> a; if (ranges::all_of(A, [&](int x) -> bool { return x == 0; })) cout << "No\n"; else cout << "Yes\n"; }