/ SeriousOJ /

Record Detail

Time Exceeded


  
# Status Time Cost Memory Cost
#1 Accepted 13ms 3.113 MiB
#2 Time Exceeded ≥1101ms ≥3.133 MiB
#3 Time Exceeded ≥1000ms ≥3.141 MiB

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