結果
| 問題 |
No.2836 Comment Out
|
| コンテスト | |
| ユーザー |
Pres1dent
|
| 提出日時 | 2024-08-09 23:14:02 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 97 ms / 2,000 ms |
| コード長 | 579 bytes |
| コンパイル時間 | 1,646 ms |
| コンパイル使用メモリ | 192,188 KB |
| 最終ジャッジ日時 | 2025-02-23 22:08:10 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 52 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
// 0 0 0
// 1 0 0
// 2 1 0
// 2 0 -1
// 3 1 0
// 0 0 0
// 1 1 0
// 1 0 -1
// 2 1 0
// 1 0
// 0 0
// 0 1
// 2 1
// 1 2
//
// x x 0 0 0 0 0
// x x 0 1 1 0 0
// x x -1 0 1 0 0
// x x 0 1 2 0
// 3 0 0 3 possible?
// 1 0 0 0
// 2 1 0 0
// 2 0 -1 0
// 3 1 0 0
// 3 1 0 1
// 3 0 -1 1
// 3 1 0 2
int main() {
int n; cin >> n;
bool yes = false;
for (int i = 0; i < n; i++) {
int a; cin >> a;
if (a == 1 or a == 0) yes = true;
}
if (yes) cout << "Yes" << endl;
else cout << "No" << endl;
}
Pres1dent