20240704

1915A. Odd One Out

for _ in range(int(input())):
    a, b, c = map(int, input().split())
    if a == b:
        print(c)
    elif a == c:
        print(b)
    else:
        print(a)

1915B. Not Quite Latin Square

We only need to check the row which contains “?”

for _ in range(int(input())):
    row_to_check: str = ""
    for i in range(3):
        row = input()
        if "?" in row:
            row_to_check = row

    if "A" not in row_to_check:
        print("A")
    elif "B" not in row_to_check:
        print("B")
    elif "C" not in row_to_check:
        print("C")
    else:
        raise Exception("unexpected")

Meat 5g Protein shake 35g keto noodle 10g Eggs 20g

Total carbohydrate 70g

I should reduce more

Protein shake have more carbohydrates than expected. better avoid it.


MUST:

TODO:


index 20240703 20240705