/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Accepted 1ms 540.0 KiB
#2 Wrong Answer 162ms 1.02 MiB
#3 Wrong Answer 192ms 1.289 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 >= l && l + x <= r)    cout << l+x <<  " " << l << endl;
    else    cout << "-1 -1\n";
}


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:48:36
Judged At
2025-04-06 15:48:36
Judged By
Score
1
Total Time
192ms
Peak Memory
1.289 MiB