Wrong Answer
Code
#include <iostream>
using namespace std;
int main() {
int t;
cin >> t;
while (t--) {
int l, r, x;
cin >> l >> r >> x;
int q = l;
int p = q + x;
if (p >= l && p <= r) {
cout << p << " " << q << endl;
} else {
cout << -1 << " " << -1 << endl;
}
}
return 0;
}
Information
- Submit By
- Type
- Submission
- Problem
- P1186 Equal to X
- Contest
- Brain Booster #9
- Language
- C++11 (G++ 13.2.0)
- Submit At
- 2025-04-06 16:47:02
- Judged At
- 2025-04-06 16:47:02
- Judged By
- Score
- 1
- Total Time
- 202ms
- Peak Memory
- 1.328 MiB