# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1061042 | boyliguanhan | Mountains (IOI17_mountains) | C++17 | 1 ms | 420 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 "mountains.h"
#include<algorithm>
int maximum_deevs(std::vector<int> y) {
y.push_back(1e9+1);
y.insert(y.begin(),1e9+1);
int ans=0;
y.erase(unique(y.begin(),y.end()),y.end());
for(int i=1;i<y.size()-1;i++)
if(y[i]<y[i+1]&&y[i]<y[i-1])
ans++;
return ans;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |