Submission
Status:
----------
Subtask/Task Score:
0/100
Score: 0
User: Test
Problemset: Consecutive Subsequence
Language: cpp
Time: 0.003 second
Submitted On: 2026-03-17 22:49:50
#include <bits/stdc++.h>
using namespace std;
int main(){
int ck=0;
vector<int> v;
int sz=0;
int x;
while(cin >> x){
sz++;
v.push_back(x);
}
if(v[1]<v[0]) cout << v[0] << " ";
for(int i=1;i<sz;i++){
if(v[i+1]<v[i] && v[i-1]<v[i]){
cout << v[i] << " ";
}
}
//if(v[sz]>v[sz-1]) cout << v[sz] << " ";
}