## Solución al problema número CodilityT3chfest6 de Codility - CodilityT3chfest6.

Cualquier duda no dudes en contactar.

``````#include <bits/stdc++.h>
#define INF 5000000000
using namespace std;

{
int ret = 0;
for(unsigned int i=0; i<A.size();i++)
{
int j = (int)(A[i]*pow1);
ret+=j;
}
return ret;
}
{
vector<int> lst;
while (value!=0) {
int remainder = value % (int)radix;
value=div;
lst.push_back(abs(remainder));
}
return lst;
}
vector<int> solution(vector<int> &A) {
if(A.size()==0) { A.push_back(0); return A;}
if(A.size()==1 && A[0]==0) return A;
}
int main()
{
vector<int> A = {1,0,0,1,1};
A=solution(A);
for(unsigned int i=0; i<A.size();i++) cout<<A[i]<<" ";
cout<<endl;
A = {};
A=solution(A);
for(unsigned int i=0; i<A.size();i++) cout<<A[i]<<" ";
cout<<endl;
A = {1,0,0,1,1,1};
A=solution(A);
for(unsigned int i=0; i<A.size();i++) cout<<A[i]<<" ";
cout<<endl;
A = {1};
A=solution(A);
for(unsigned int i=0; i<A.size();i++) cout<<A[i]<<" ";
cout<<endl;
A = {0};
A=solution(A);
for(unsigned int i=0; i<A.size();i++) cout<<A[i]<<" ";
cout<<endl;
}
``````