/ SeriousOJ /

Record Detail

Runtime Error


  
# Status Time Cost Memory Cost
#1 Wrong Answer 1ms 540.0 KiB
#2 Runtime Error 173ms 1.27 MiB

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 << " " << l << 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:57:03
Judged At
2025-04-06 16:57:03
Judged By
Score
0
Total Time
173ms
Peak Memory
1.27 MiB