Orig Description
Problem A: Lunch
Problem
One day, Kawabayashi-kun is trying to have his lunch at the school cafeteria.
There are three types of daily lunch menus: A, B, and C, at the cafeteria.
Kawabayashi-kun is a big eater, and he wants to eat all three types of daily lunch menus, one each.
However, he wants to minimize the sum of calories he consumes, so he decides to give up one of the lunch menus and have two different ones.
Given the calories of A, B, and C lunch menus for a certain day, please find out which lunch menu he will give up.
Input
The input is given in the following format.
$a$ $b$ $c$
Three integers $a$, $b$, and $c$ are given separated by a space. They represent the calories of A, B, and C lunch menus for a certain day, respectively.
Constraints
The input satisfies the following conditions.
$1 \leq a, b, c \leq 5000 $
$a \neq b, b \neq c, c \neq a$
Output
Print the name of the lunch menu that Kawabayashi-kun gives up on a single line.
If he gives up A, print "A".
If he gives up B, print "B".
If he gives up C, print "C".
Sample Input 1
1000 900 850
Sample Output 1
A
Sample Input 2
1000 800 1200
Sample Output 2
C
Extracted Specification
Canonicalized Input Description:
Three integers \(a\), \(b\), and \(c\) (1 ≤ \(a, b, c\) ≤ 5000), each representing some quantity. The integers are distinct.
### Example Input:
```
1000 900 850
```
### Function Signature:
Write a function `f(a, b, c)` that takes in the input.
```python
def f(a: int, b: int, c: int):
'''
a: an integer
b: an integer
c: an integer
'''
```
Test Case Generator
Certainly! Below is a test case generator for the "Problem A: Lunch" problem. This generator will create random test cases adhering to the constraints provided.
```python
import random
def tcgen():
# Generate three distinct integers between 1 and 5000
a, b, c = random.sample(range(1, 5001), 3) # random.sample ensures distinct values
return a, b, c
# Example of using the test case generator
for _ in range(5): # Generate 5 test cases for demonstration
a, b, c = tcgen()
print(f"{a} {b} {c}")
```
You can use this function to generate test cases for the problem. Here's how it works:
- `random.sample(range(1, 5001), 3)` generates three distinct integers between 1 and 5000.
- The function returns a tuple containing these three integers.
The generated test cases will always meet the problem's constraints:
- All three integers are distinct.
- Each integer is between 1 and 5000, inclusive.
You can run the provided example loop to see a few sample test cases generated by this function.
Extract Arguments
def extract_arguments(fh):
a, b, c = map(int, fh.readline().strip().split())
return a, b, c