20241026 ◎

2033A. Sakurako and Kosuke

Observation: The absolute value of the positions is increasing by 1 (1, 2, 3, …)

Sum(i=1, n): 2(i - 1) * (-1) ^ i

Sum(n): n (if n is even)

Sum(n): -n (if n is even)

We just need to check if i is even or odd when it reaches n.

for _ in range(int(input())):
    n: int = int(input())
    if n % 2 == 1:
        print("Kosuke")
    else:
        print("Sakurako")

Salad 500 Rice 500 Protein shake 300 Mashed potatoes 150 Sandwich 300

Total 1750 kcal


MUST:

TODO:


index 20241025 20241027