Package net.n1da.dev.euler
Class PE0057
- java.lang.Object
-
- net.n1da.dev.euler.core.Problem
-
- net.n1da.dev.euler.PE0057
-
- All Implemented Interfaces:
Solvable
public class PE0057 extends Problem
Solution for problem 57 "Square root convergents" completed on Sun, 30 Oct 2016, 06:46.- Since:
- 26.10.2016 19:01:38
- Author:
- Nico Danneberg
- See Also:
- Problem @ Project Euler, Solution @ Ni-Da-Net
-
-
Method Summary
Modifier and Type Method Description java.lang.String
solve()
This method just runs a loop for the 1.000 steps and calculates the numerator and denominator for every iteration.
-
-
-
Method Detail
-
solve
public java.lang.String solve()
This method just runs a loop for the 1.000 steps and calculates the numerator and denominator for every iteration. If the numerator has more digits than the denominator a counter is increased.- Returns:
- the count of cases where numerator has more digits than the denominator
-
-