# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1112357 | vjudge1 | Baloni (COCI15_baloni) | C++17 | 1333 ms | 10860 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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 time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |