結果
| 問題 |
No.2836 Comment Out
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-08-09 22:23:13 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 24 ms / 2,000 ms |
| コード長 | 609 bytes |
| コンパイル時間 | 3,070 ms |
| コンパイル使用メモリ | 266,152 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-08-09 22:23:23 |
| 合計ジャッジ時間 | 5,184 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 52 |
ソースコード
#define _GLIBCXX_DEBUG
#include<bits/stdc++.h>
using namespace std;
int N,A[201010];
int main(){
ios::sync_with_stdio(false);
std::cin.tie(nullptr);
cout<<fixed<<setprecision(15);
cin>>N;
for(int i=0;i<N;i++){
int A;cin>>A;
if(A==0||A==1){
cout<<"Yes"<<endl;
exit(0);
}
}
cout<<"No"<<endl;
// for(int i=1;i<=N;i++)cin>>A[i];
// for(int i=1;i<=N-1;i++){
// if(abs(A[i]-A[i+1])>1){
// cout<<"No"<<endl;
// exit(0);
// }
// }
// if(abs(A[0]-A[1])>1&&abs(A[N]-A[N+1])>1){
// cout<<"No"<<endl;
// }else{
// cout<<"Yes"<<endl;
// }
}