Hi, I am doing the obvious precomputation then listing the cab numbers from the given range, but I am getting WA.
Edit: I found my silly problem, I was double counting numbers when there was > 2 ways to make it. For example 87539319 = 167^3 + 436^3 = 228^3 + 423^3 = 255^3 + 414^3.
Search found 3 matches
- Sun May 06, 2007 8:35 am
- Forum: Volume 9 (900-999)
- Topic: 962 - Taxicab Numbers
- Replies: 16
- Views: 12011
- Thu Apr 12, 2007 12:18 am
- Forum: Volume 111 (11100-11199)
- Topic: 11112 - Babylonian Roulette
- Replies: 6
- Views: 7010
- Tue Apr 10, 2007 10:01 pm
- Forum: Volume 111 (11100-11199)
- Topic: 11112 - Babylonian Roulette
- Replies: 6
- Views: 7010
Hi I think I have also misunderstood the question... I keep getting WA
Any ideas what tricky cases I am getting wrong?
Edit: I misunderstood last rule of the game..
Code: Select all
AC
Edit: I misunderstood last rule of the game..