# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
95109 |
2019-01-27T11:26:11 Z |
karlopuh |
Baloni (COCI15_baloni) |
C++14 |
|
191 ms |
1632 KB |
#include <bits/stdc++.h>
using namespace std;
vector <bool> moze(10000001,false);
int brojac,n;
int main(){
cin>>n;
for(int i=0;i<n;i++){
int broj;
cin>>broj;
if(!moze[broj+i]){
brojac++;
moze[broj+i]=true;
}
}
cout<<brojac;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
3 ms |
1528 KB |
Output isn't correct |
2 |
Incorrect |
3 ms |
1528 KB |
Output isn't correct |
3 |
Incorrect |
3 ms |
1528 KB |
Output isn't correct |
4 |
Incorrect |
3 ms |
1528 KB |
Output isn't correct |
5 |
Incorrect |
191 ms |
1528 KB |
Output isn't correct |
6 |
Incorrect |
191 ms |
1632 KB |
Output isn't correct |
7 |
Incorrect |
154 ms |
1528 KB |
Output isn't correct |
8 |
Incorrect |
153 ms |
1528 KB |
Output isn't correct |
9 |
Incorrect |
174 ms |
1596 KB |
Output isn't correct |
10 |
Incorrect |
169 ms |
1528 KB |
Output isn't correct |