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<< " "<<r<<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:15:47
- Judged At
- 2025-04-06 16:15:47
- Judged By
- Score
- 0
- Total Time
- 262ms
- Peak Memory
- 1.285 MiB