/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Accepted 1ms 532.0 KiB
#2 Wrong Answer 278ms 1.055 MiB
#3 Wrong Answer 283ms 1.195 MiB

Code

#include <bits/stdc++.h>
using namespace std;
int main()
{
    int t;
    cin >> t;
    while (t--)
    {
        long long l, r, x;
        cin >> l >> r >> x;

        long long q = l;
        long long p = q + x;

        if (p >= l && p <= r)
        {
            cout << p << " " << q << endl;
        }
        else
        {
            cout << -1 << " " << -1 << endl;
        }
    }
}

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:46:17
Judged At
2025-04-06 16:46:17
Judged By
Score
1
Total Time
283ms
Peak Memory
1.195 MiB