結果
問題 | No.2836 Comment Out |
ユーザー |
|
提出日時 | 2024-08-09 21:45:32 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 67 ms / 2,000 ms |
コード長 | 411 bytes |
コンパイル時間 | 1,892 ms |
コンパイル使用メモリ | 195,596 KB |
最終ジャッジ日時 | 2025-02-23 21:29:44 |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 52 |
ソースコード
#include <bits/stdc++.h>#pragma GCC optimize("Ofast")#pragma GCC optimize("unroll-loops")using namespace std;int main() {cin.tie(0); cout.tie(0);ios::sync_with_stdio(false);int N;cin >> N;vector<int> A(N);for(int i = 0; i < N; i++) {cin >> A[i];}bool fn = false;for(int c : A) {if(c <= 1) {fn = true;}}cout << (fn ? "Yes" : "No") << '\n';return 0;}