#include <string>
using namespace std;
double _string_to_double(string &s,unsigned short radix){
double n = 0, y = 1;
for (unsigned short x = s.size();x&&s[--x]^'-';)
if(s[x] ^ '.')
n+=( (s[x] - (s[x]<='9' ? '0':'0'+7) ) * y ), y*=radix;
else
n/=y, y = 1;
return s[0] ^ '-' ? n:n*-1;
}
int main (){
string a = "184414124";
for(unsigned long long x = 1000000;x>0;--x){
_string_to_double(a,10);
}
return 0;
}
I2luY2x1ZGUgPHN0cmluZz4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKZG91YmxlIF9zdHJpbmdfdG9fZG91YmxlKHN0cmluZyAmcyx1bnNpZ25lZCBzaG9ydCByYWRpeCl7CiAgICBkb3VibGUgbiA9IDAsIHkgPSAxOwogICAgZm9yICh1bnNpZ25lZCBzaG9ydCB4ID0gcy5zaXplKCk7eCYmc1stLXhdXictJzspCiAgICAgICAgaWYoc1t4XSBeICcuJykKICAgICAgICBuKz0oIChzW3hdIC0gKHNbeF08PSc5JyA/ICcwJzonMCcrNykgKSAqIHkgKSwgeSo9cmFkaXg7CiAgICBlbHNlCiAgICAgICAgbi89eSwgeSA9IDE7CiAgICByZXR1cm4gc1swXSBeICctJyA/IG46biotMTsKfQogCmludCBtYWluICgpewogICAgCnN0cmluZyBhID0gIjE4NDQxNDEyNCI7CmZvcih1bnNpZ25lZCBsb25nIGxvbmcgeCA9IDEwMDAwMDA7eD4wOy0teCl7CiBfc3RyaW5nX3RvX2RvdWJsZShhLDEwKTsKfQpyZXR1cm4gMDsKfQ==