# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
95109 | karlopuh | Baloni (COCI15_baloni) | C++14 | 191 ms | 1632 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;
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 |
---|---|---|---|---|
Fetching results... |