
Problem
Here.
Summary
- Given n(1 <= n <= 9) and k (0 <= k < 10^n) where n is the number of digits the calculator can display, k is the starting number. Compute the maximum number that we can get by repeatedly squaring the starting number.
Analyse
- Floyd Cycle Detection Algorithm !
Code in C++
|
|




近期评论