結果
| 問題 | No.3286 Make a Happy Connection |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-11-23 23:26:13 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 375 bytes |
| コンパイル時間 | 900 ms |
| コンパイル使用メモリ | 73,948 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2025-11-23 23:26:16 |
| 合計ジャッジ時間 | 2,798 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 26 WA * 1 |
ソースコード
#include <iostream>
#include <vector>
#include <string>
using namespace std;
int main(void){
int n, i, tp;
vector<int> a;
string ans ="No";
cin >> n;
a.clear();
for (i=0; i<n; i++){
cin >> tp;
a.push_back(tp);
}
for (i=2; i<n; i++){
if (a[i] == a[i-2]) ans ="Yes";
}
cout << ans << endl;
}