You are viewing a single comment's thread from:
RE: Bruteforce Solution to Mathematics × Programming Competition #5 暴力搜索[問題] 數學 × 程式編寫比賽 (第五回)
Nice!
Do you know Prolog? I solved this problem using it. The idea is the same as you did. Only all the loops to try new values for each variable are automatically handled by the Prolog engine 😼
You can see my solution here:
https://steemit.com/contest/@armandocat/mathematics-programming-competition-5-prolog-solution