# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
713821 |
2023-03-23T05:46:52 Z |
ALTAKEXE |
Baloni (COCI15_baloni) |
C++14 |
|
165 ms |
7204 KB |
#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 |
1 |
Incorrect |
0 ms |
212 KB |
Output isn't correct |
2 |
Incorrect |
0 ms |
212 KB |
Output isn't correct |
3 |
Incorrect |
1 ms |
212 KB |
Output isn't correct |
4 |
Incorrect |
1 ms |
212 KB |
Output isn't correct |
5 |
Incorrect |
163 ms |
6464 KB |
Output isn't correct |
6 |
Incorrect |
165 ms |
7204 KB |
Output isn't correct |
7 |
Incorrect |
133 ms |
6092 KB |
Output isn't correct |
8 |
Incorrect |
133 ms |
5920 KB |
Output isn't correct |
9 |
Incorrect |
150 ms |
6244 KB |
Output isn't correct |
10 |
Incorrect |
146 ms |
6484 KB |
Output isn't correct |