Runtime Error
Code
#include <iostream>
using namespace std;
int main() {
int t;
cin >> t;
while (t--) {
long long l, r, x;
cin >> l >> r >> x;
if (l + x <= r) {
cout << l + x << " " << l << endl;
} else if (r - x >= l) {
cout << r << " " << r - x << endl;
} else {
cout << -1 << " " << -1 << endl;
}
}
return 0;
}
Information
- Submit By
- Type
- Submission
- Problem
- P1186 Equal to X
- Contest
- Brain Booster #9
- Language
- C++17 (G++ 13.2.0)
- Submit At
- 2025-04-06 16:18:29
- Judged At
- 2025-04-06 16:18:29
- Judged By
- Score
- 0
- Total Time
- 257ms
- Peak Memory
- 1.395 MiB