MathDB
Logic

Source:

September 21, 2011

Problem Statement

Each one of three friends, Mário, João and Filipe, does one, and only one, of the following sports: football, basketball and swimming. None of these sports is done by more than one of the friends. Each one of the friends likes a certain kind of fruit: one likes oranges, another likes bananas and the other likes papayas. Find, for each one, which sport he plays and which fruit he prefers, given that:
* Mário doesn't like oranges;
* João doesn't play football;
* The swimmer hates bananas;
* The swimmer and the one who likes oranges do different sports;
* The one who likes papayas and the footballer visit Filipe every Saturday.