# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
95107 | karlopuh | Baloni (COCI15_baloni) | C++14 | 187 ms | 1144 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 <iostream>
using namespace std;
bool moze[10000001];
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... |