Hacker News new | ask | show | jobs
by Avshalom 1515 days ago
Worth noting the entirety of the actual code would be

  :- use_module(library(clpfd)).
  
  main :-
    100 #= H*50 + Q*25 + D*10 + N*5 + P*1.
That's it.