AoC 2020 D25: Combo Breaker
| Problem statement | Source code | Tags: Brute forceModular arithmetic
I thought there would be some neat mathematical trick to this problem exploiting the weakness of the transformation function, but it seems that brute force works just fine??
(By the way, this method of using and as public keys and as the shared secret is the Diffie–Hellman key exchange.)