a827: Winning Score
Tags :
Accepted rate : 30人/30人 ( 100% ) [非即時]
評分方式:
Strictly

最近更新 : 2022-10-15 10:52

Content

You record all of the scoring activity at a basketball game. Points are scored by a 3-point shot, a 2-point field goal, or a 1-point free throw. You know the number of each of these types of scoring for the two teams: the Apples and the Bananas. Your job is to determine which team won, or if the game ended in a tie.

Input

The first three lines of input describe the scoring of the Apples, and the next three lines of input describe the scoring of the Bananas. For each team, the first line contains the number of successful 3-point shots, the second line contains the number of successful 2-point field goals, and the third line contains the number of successful 1-point free throws. Each number will be an integer between 0 and 100, inclusive.

Output

The output will be a single character. If the Apples scored more points than the Bananas, output A. If the Bananas scored more points than the Apples, output B. Otherwise, output T, to indicate a tie.

Sample Input #1
10
3
7
8
9
6
Sample Output #1
B
Sample Input #2
7
3
0
6
4
1
Sample Output #2
T
測資資訊:
記憶體限制: 64 MB
不公開 測資點#0 (8%): 0.8333333333333334s , <1K
不公開 測資點#1 (8%): 0.8333333333333334s , <1K
不公開 測資點#2 (8%): 0.8333333333333334s , <1K
不公開 測資點#3 (8%): 0.8333333333333334s , <1K
不公開 測資點#4 (8%): 0.8333333333333334s , <1K
不公開 測資點#5 (8%): 0.8333333333333334s , <1K
不公開 測資點#6 (8%): 0.8333333333333334s , <1K
不公開 測資點#7 (8%): 0.8333333333333334s , <1K
不公開 測資點#8 (9%): 0.8333333333333334s , <1K
不公開 測資點#9 (9%): 0.8333333333333334s , <1K
不公開 測資點#10 (9%): 0.8333333333333334s , <1K
不公開 測資點#11 (9%): 0.8333333333333334s , <1K
Hint :
Tags:
出處:
[管理者:
cplei@g.puic... (李振邦Lei Chan Pon...)
]


ID User Problem Subject Hit Post Date
沒有發現任何「解題報告」