#P1599. Angry Coach Jia
Angry Coach Jia
题目描述
As we all know, in this year's Tokyo Olympic Games, the Chinese national women's football team achieved unsatisfactory results. Most people blame Coach Jia. As Coach Jia, you are very angry. You think at least in calculating scores, You still have some talent. Therefore, the students from QLU have given you some difficult problems. I hope you can solve this problem.
Now your task is to give you the number of goals scored between the Chinese women's football team and the foreign women's football team in a group match, you will follow international practice: that is, if the number of net profit football goals of the team is greater than or equal to 1, the team will get three points; if the number of net profit football goals of the team is equal to zero, the team will get one point; if the net profit football number of the team is less than 0, the team will not get points.For example, if China: Brazil 4:0, then the Chinese team will get 3 points; conversely, if Brazil 4:0 China, then Brazil will get 3 points, the Chinese team will get 0 points.In an ideal situation, China 0:0 Brazil,In that case, each of the two teams can get one point. At the same time, we always calculate the number of goals scored in an hour and a half (Only exactly one and a half hours here, accurate to every second).
输入格式
Input a total of three lines, Each line includes three integers ,, ( , ).
When is equal to 0, it means that the Chinese team is the visiting team (that is, the scores on the right); when equals 1, it means that the Chinese team is the home team (that is, the scores on the left), represents the number of goals scored by the home team, and represents the number of goals scored by the visiting team.
输出格式
The output includes two lines, the first line represents a total score of the Chinese team through these three rounds of competition, and the second line represents the total number of pure profit football of the Chinese football team in three competitions. Note:With one exception, if there are too many goals in any game (At most one ball per second can enter the goal.), we will directly output "The players are exhausted."
样例
1 4 4
1 0 5
0 8 2
1
-11
0 3 0
0 0 2
1 0 0
4
-1
1 92800 87506
0 20741 20805
1 17980 20808
The players are exhausted.
提示
By QLU_吹梦到西洲 原创题目
Note:For example, in the first example, 1 4 4 means that China is the home team, that is, the 4 on the left is the number of goals scored by the Chinese team, and the 4 on the right (that is, the visiting team) is the number of goals scored by the visiting team, at this time, the number of net profit goals of the Chinese team is 0;0 8 2, which means that China is the visiting team, that is, the 2 on the right is the number of goals scored by the Chinese team, while the 8 on the left is the number of goals scored by the home team, and the number of net profit football for the Chinese team is -6 at this time.