HHC 2019 programming contest entries
|
10-11-2019, 12:51 AM
Post: #4
|
|||
|
|||
RE: HHC 2019 programming contest entries
(10-10-2019 10:24 PM)dramsey Wrote: An anonymous note left at my place when I was away reads "Anonymous note to judge: A smart programmer can cut search space in half by requiring first two digits to have the same even-odd parity." I have no idea if this is true but wish the submitter had included a program... Proof: Let N = 100 a + 10 b + c Rephrase the problem to search (a^3 - 100 a) + (b^3 - 10 b) + (c^3 - c) = 0 Mod 2: (a^3 - 100 a) + (b^3 - 10 b) + (c^3 - c) ≡ a + b + 0 ≡ 0 → a ≡ b (mod 2) |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
HHC 2019 programming contest entries - dramsey - 10-10-2019, 10:24 PM
RE: HHC 2019 programming contest entries - Thomas Okken - 10-11-2019, 12:09 AM
RE: HHC 2019 programming contest entries - 3298 - 10-11-2019, 12:26 AM
RE: HHC 2019 programming contest entries - Albert Chan - 10-11-2019 12:51 AM
RE: HHC 2019 programming contest entries - Gene - 10-11-2019, 02:20 AM
RE: HHC 2019 programming contest entries - Gene - 10-11-2019, 02:22 AM
RE: HHC 2019 programming contest entries - John Keith - 10-13-2019, 09:09 PM
RE: HHC 2019 programming contest entries - DavidM - 10-22-2023, 04:15 PM
|
User(s) browsing this thread: 4 Guest(s)