|시간 제한||메모리 제한||제출||정답||맞힌 사람||정답 비율|
|1 초||1024 MB||2429||2014||1908||83.979%|
There are five ways to score points in american professional football:
Given the box score values for two competing teams, calculate the point total for each team.
There are two lines of input each containing five space-separated non-negative integers, T, F, S, P and C representing the number of Touchdowns, Field goals, Safeties, Points-after-touchdown and two-point Conversions after touchdown respectively. (0 ≤ T ≤ 10), (0 ≤ F ≤ 10), (0 ≤ S ≤ 10), (0 ≤ (P+C) ≤ T). The first line represents the box score for the visiting team, and the second line represents the box score for the home team.
The single output line consists of two space-separated integers showing the visiting score and the home score respectively.
1 3 0 0 1 3 1 1 1 1