Accepted
Code
x = int(input())
for _ in range(x):
y, z, i = map(int, input().split())
n = abs(y - i)
m = 0
if y >= i:
n = abs(y - i)
print(n, z)
elif z >= n:
print(0, z - n)
else:
print(0, 0)
Information
- Submit By
- Type
- Submission
- Problem
- P1187 Ticket Battle: Hridoy vs Kamona
- Contest
- Brain Booster #9
- Language
- Python 3 (Python 3.12.3)
- Submit At
- 2025-04-06 17:06:58
- Judged At
- 2025-04-06 17:06:58
- Judged By
- Score
- 100
- Total Time
- 616ms
- Peak Memory
- 3.91 MiB