Submission #1112357

#TimeUsernameProblemLanguageResultExecution timeMemory
1112357vjudge1Baloni (COCI15_baloni)C++17
0 / 100
1333 ms10860 KiB
#include <bits/stdc++.h> using namespace std; int main() { int n; cin>>n; vector<long long> s(n+1); for(int i=0; i<n; i++) cin>>s[i]; s[n]=1e9; int t=0; for(int i=0; i<n; i++) { if(s[i]<s[i+1]) t++; cout<<s[i+1]<<endl; } cout<<t; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...