Search found 3 matches
- Thu Oct 23, 2003 4:19 pm
- Forum: Volume 105 (10500-10599)
- Topic: 10509 - R U Kidding Mr. Feynman?
- Replies: 41
- Views: 20718
Yes, one of my attempts was to use k*k*k and a linear search though all k (faster than binary search because k is small) to find the right k, and another attempt was to use a hard-coded lookup table of cubes plus linear search to find k, and again everything is way slower than my k = int(pow(n, 1.0 ...
- Wed Oct 22, 2003 1:16 am
- Forum: Volume 105 (10500-10599)
- Topic: 10509 - R U Kidding Mr. Feynman?
- Replies: 41
- Views: 20718
- Tue Oct 21, 2003 4:59 pm
- Forum: Volume 105 (10500-10599)
- Topic: 10509 - R U Kidding Mr. Feynman?
- Replies: 41
- Views: 20718
10509 - speed??
Hi! I've got the usual solution in C++ for 10509, using pow() and a really short program but I get 0.600 seconds. I'm wondering, how the heck can people get 0.244 seconds in C++ for this program? I have tried precomputed look-up tables for my cubes, linear search through the table, binary search ...