#P1326. 足球
足球
Description
Many of us love Chinese football; we all know the rules of the Chinese Super League (CSL):
In a match, if you win (i.e., your goals are strictly greater than your opponent's), you get points; if you draw (i.e., your goals equal your opponent's), you get point; if you lose (i.e., your goals are strictly less than your opponent's), you get points.
This problem is simple: suppose over rounds you scored goals in total and conceded goals. What are the maximum and minimum points you could possibly obtain?
Input Format
Multiple test cases. Each test case contains one line with three integers (, ). There are at most test cases per test point.
Output Format
For each test case, output one line with two integers: the maximum points and the minimum points.
1 1 1
1 1 2
1 1
3 2
Hint
Translated by ChatGPT 5
京公网安备 11011102002149号