Time Exceeded
Code
t = int(input())
for _ in range(t):
l, r, x = map(int, input().split())
found = False
for p in range(l, r + 1):
q = p - x
if l <= q <= r:
print(p, q)
found = True
break
if not found:
print(-1, -1)
Information
- Submit By
- Type
- Submission
- Problem
- P1186 Equal to X
- Contest
- Brain Booster #9
- Language
- Python 3 (Python 3.12.3)
- Submit At
- 2025-04-06 17:43:02
- Judged At
- 2025-04-06 17:43:02
- Judged By
- Score
- 1
- Total Time
- ≥1101ms
- Peak Memory
- ≥3.141 MiB