/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Accepted 1ms 320.0 KiB
#2 Wrong Answer 249ms 1.348 MiB
#3 Wrong Answer 272ms 1.699 MiB

Code

#include <bits/stdc++.h>
#define ll long long
using namespace std;


void solve(){
    ll l,r,x;   cin >> l >> r >> x;
    if(l+x > r || r+x < l) cout << "-1 -1\n";
    else{
        if(x >= 0)  cout << l+x <<  " " << l << endl;
        else    cout << r << " " << r+x << endl; 
    }
}


int main(){
    int t;  cin >> t;
    while(t--)    solve();
    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 15:59:36
Judged At
2025-04-06 15:59:36
Judged By
Score
1
Total Time
272ms
Peak Memory
1.699 MiB