ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1483. Table Football

Hint for this problem
Posted by BigBin 25 Jul 2008 14:16
You must know score of Ural SU Osliki and Ural SU T34 team is not simultaneously in one game.

For the first team. If they play all game with draw so the winner have n-1 scores.

For the second team. The best scores is all team is win in n/2 games so the second team have (n-1)/2*3 scores but if n is even so it have one game for draw.
for n is even = (n-1)/2*3 + 1
for n is odd = (n-1)/2*3

*sorry for bad english