# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
95292 | karlopuh | Baloni (COCI15_baloni) | C++14 | 202 ms | 5156 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);
long long int brojac,n;
int main(){
cin>>n;
for(long long int i=1;i<=n;i++){
long long int broj;
cin>>broj;
if(moze[broj+i]==false){
moze[broj+i]=true;
brojac++;
}
}
cout<<brojac;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |