Problem 1732. GJam: 2013 Rd1a Bullseye Painting - Large Numbers
Solution Stats
Problem Comments
-
2 Comments
Does r=uint64(308436464205151562) make sense? It seems like the argument to uint64 is a double precision number, so you have already lost the precision you are trying to gain by using uint64.
r=uint64(308436464205151562) outputs for uint64(r) 308436464205151562. However, r=308436464205151562 outputs for uint64(r) 308436464205151552. A very small loss in precision, but still a loss. The Challenge set has some numbers that use all the paint if full precision math was used. If residual paint was required as an output then full precision is needed. For solutions using p=p-2*r-1 the errors in r and p may cause issues.
Solution Comments
Show commentsProblem Recent Solvers8
Suggested Problems
-
Remove the small words from a list of words.
1275 Solvers
-
Project Euler: Problem 3, Largest prime factor
1211 Solvers
-
229 Solvers
-
Give me Hamming on five, hold the mayo
44 Solvers
-
GJam 2014 China Rd B: Sudoku Checker
55 Solvers
More from this Author260
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!