# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
713821 | ALTAKEXE | Baloni (COCI15_baloni) | C++14 | 165 ms | 7204 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() {
//freopen("input.txt","r",stdin);
long long int n,m,t=0;
cin>>n;
m=n;
long long int a[n];
for(int i=0;i<n;i++) cin>>a[i];
for(int i=0;i<n;i++){
if(a[i]==m) m--;
else{
t++;
}
}
cout<<t;
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |