Runtime Error
Code
#include <bits/stdc++.h>
#define ll long long int
#define N "\n"
using namespace std;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
ll t;
cin >> t;
while (t--)
{
ll l,r,x;
cin>>l>>r>>x;
if(r-l<abs(x)){
cout<<-1<<" "<<-1<<N;
continue;
}
cout<<l+x<<" "<<l<<N;
}
}
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 15:40:28
- Judged At
- 2025-04-06 15:40:28
- Judged By
- Score
- 1
- Total Time
- 43ms
- Peak Memory
- 1.828 MiB