結果
| 問題 |
No.2836 Comment Out
|
| コンテスト | |
| ユーザー |
tottoripaper
|
| 提出日時 | 2024-08-29 11:41:19 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 76 ms / 2,000 ms |
| コード長 | 423 bytes |
| コンパイル時間 | 1,668 ms |
| コンパイル使用メモリ | 193,628 KB |
| 最終ジャッジ日時 | 2025-02-24 02:40:42 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 52 |
ソースコード
#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;
}
}
tottoripaper