Codedamn Sprint Showdown
In a thrilling 400-meter dash at the Codedamn Annual Sprint, three contenders, namely Alice, Bob, and Charlie, fiercely competed for the title. Each participant finished the race in distinct times: Alice in seconds, Bob in seconds, and Charlie in seconds. Your task is to determine who boasted the highest average velocity throughout the course.
Input Specifications
- The initial line will present a single integer , indicating the total number of races analyzed.
- Following this, each race is detailed over several lines:
- For each race, the first line will list three integers separated by spaces, and . These represent the completion times of Alice, Bob, and Charlie, respectively.
Output Specifications
After evaluating each race, indicate who had the swiftest average pace by printing:
ALICE
, if Alice demonstrated superior speed.BOB
, if Bob outpaced the others.CHARLIE
, if Charlie was the fastest.
Output can disregard case sensitivity, meaning ALICE
, alice
, or any variation thereof are equivalent.
Constraints
- It is guaranteed that and are distinct.
Sample Races and Analysis
Race #1:
Input:
3 1 2 8 4 100 1 7 3 5
Output:
ALICE CHARLIE BOB
Analysis
Race : In this instance, the time to complete the 400-metre dash was and seconds for the contenders, respectively. Consequently, their speeds were and meters per second, respectively.
Alice emerged as the speediest in this scenario.
Race : The racers concluded the dash in and second(s) respectively, translating to speeds of and meters per second respectively.
In this race, Charlie showcased unmatched speed.
Race : With Bob completing the race in the shortest time, he claimed the highest average velocity.