結果
| 問題 |
No.3286 Make a Happy Connection
|
| ユーザー |
|
| 提出日時 | 2025-10-22 20:28:08 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 402 bytes |
| コンパイル時間 | 1,710 ms |
| コンパイル使用メモリ | 196,028 KB |
| 実行使用メモリ | 7,724 KB |
| 最終ジャッジ日時 | 2025-10-22 20:28:14 |
| 合計ジャッジ時間 | 5,656 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 RE * 2 |
| other | WA * 1 RE * 26 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
int N;
cin >> N ;
vector<int> A(N);
for(int i = 0 ; i < N ;i++){
int a;
cin >> a;
A.at(i)= a;
}
for(int i = 0; i < N-1 ; i++){
if( A.at(i) == A.at(i+1)){
cout << "Yes" << endl;
}else if(A.at(i) == A.at(i+2)){
cout << "Yes" << endl;
}else{
cout << "No" << endl;
}
}
}