Professional Documents
Culture Documents
John Nash: Yes, it’s all good so far, but keep this in mind:
best result comes from everyone in a group doing
what's best for themselves and the group!
Econs will now only initiate a trade with another econ that it considers its friend. An econ will
still participate in a trade with another econ that it does not consider its friend.
Output a sequence of valid trades where every econ always executes the trade that is most
beneficial to them at the moment where in the end no econ has a beneficial trade available
anymore. When two trades are equally beneficial, the rules from last level apply. The last line in
the output should be the last trade that is executed.
The output format is identical to last level
Input Output
6 1 6 4 2
1 5 6 8 3 1 2 NO TRADE
2 4 3 6 6 3
3 1 3 7 8 5 6 4 7 3 5
4 2 8 7 5 5 1 2
5 8 5 1 NO TRADE
6 6 3 4 1 7 2 8 5 1 1 4 5
8 NO TRADE
1 2 2 10 5 4 7 3 7 5 1
2 8 6 7 5 9 4 NO TRADE
3 9 3 10 4 1 1 5 8 3 7
Example
4 10 9 8 1 4 5
5 10 5 6 3 1 3
6 1 9 4 7 3 3
7 3 6 9 2 10 7
8 8 2 10 3 9 7
1 4
2
3 5 6
4 3
5 1 3 4
6 2
GOOD LUCK