Wrong Answer
Code
#include <iostream>
#include <string>
#include <vector>
#include <set>
#include <algorithm>
using namespace std;
signed main() {
int T;
cin >> T;
while(T--)
{
long long int l, r, x;
cin >> l >> r >> x;
if(r - l < abs(x))
{
cout << -1 << " " << -1 << endl;
}
else
{
cout << r << " " << r - x << endl;
}
}
return 0;
}
Information
- Submit By
- Type
- Submission
- Problem
- P1186 Equal to X
- Language
- C++17 (G++ 13.2.0)
- Submit At
- 2025-05-11 00:26:02
- Judged At
- 2025-05-11 00:26:02
- Judged By
- Score
- 1
- Total Time
- 308ms
- Peak Memory
- 1.668 MiB