# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
95294 |
2019-01-29T18:52:28 Z |
karlopuh |
Baloni (COCI15_baloni) |
C++14 |
|
198 ms |
4468 KB |
#include <bits/stdc++.h>
using namespace std;
vector <bool> moze(10000001,false);
long long int brojac,n;
int main(){
cin>>n;
for(long long int i=0;i<n;i++){
long long int broj;
cin>>broj;
long long int mask=broj;
if(moze[mask]==false){
moze[mask-1]=true;
brojac++;
}else{
moze[mask]=false;
moze[mask-1]=true;
}
}
cout<<brojac;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
3 ms |
1528 KB |
Output isn't correct |
2 |
Incorrect |
4 ms |
1500 KB |
Output isn't correct |
3 |
Incorrect |
3 ms |
1528 KB |
Output isn't correct |
4 |
Incorrect |
4 ms |
1572 KB |
Output isn't correct |
5 |
Incorrect |
194 ms |
4260 KB |
Output isn't correct |
6 |
Incorrect |
198 ms |
4260 KB |
Output isn't correct |
7 |
Incorrect |
160 ms |
4384 KB |
Output isn't correct |
8 |
Incorrect |
159 ms |
4264 KB |
Output isn't correct |
9 |
Incorrect |
177 ms |
4400 KB |
Output isn't correct |
10 |
Incorrect |
175 ms |
4468 KB |
Output isn't correct |