Advertisement
tzoonami

Untitled

Oct 3rd, 2013
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Prolog 0.49 KB | None | 0 0
  1. solution(France,Switzerland,Italy,Belgium,Holland,Germany,Austria) :-
  2.     color(France), color(Switzerland),
  3.     \+ France=Switzerland,
  4.     color(Italy),
  5.     \+ France=Italy, \+ Switzerland=Italy,
  6.     color(Belgium),
  7.     \+ France=Belgium,
  8.     color(Holland),
  9.     \+ Belgium=Holland,
  10.     color(Germany),
  11.     \+ France=Germany, \+ Switzerland=Germany,
  12.     \+ Belgium=Germany, \+ Holland=Germany,
  13.     color(Austria),
  14.     \+ Switzerland=Austria, \+ Italy=Austria,
  15.     \+ Germany=Austria.
  16.  
  17. color(red).
  18. color(orange).
  19. color(yellow).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement