Search found 1 match

by athena lin
Fri Mar 04, 2011 12:03 pm
Forum: Volume 102 (10200-10299)
Topic: 10275 - Guess the Number!
Replies: 4
Views: 3607

Re: 10275 - Guess the Number!

i am unsuccessfully trying to solve this problem.... here's my algo

1. generate digit[x] -> number of digit(s) in x^x ( using log )
2. take input and binary search in digit[] to get a approx
3. use fast exponentiation to evaluate x^x
4. check whether calculated x^x is equal as given input string ...

Go to advanced search