QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#858367#4755. Romualdych and remaindersrotcar07WA 317ms3584kbC++23234b2025-01-16 16:41:402025-01-16 16:41:40

Judging History

This is the latest submission verdict.

  • [2025-01-16 16:41:40]
  • Judged
  • Verdict: WA
  • Time: 317ms
  • Memory: 3584kb
  • [2025-01-16 16:41:40]
  • Submitted

answer

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(){
    int n;cin>>n;
    while(n--){
        ll a,b,r;cin>>a>>b>>r;
        if(r*2>b) cout<<"-1 -1\n";
        else cout<<b<<' '<<b-r<<'\n';
    }
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 3584kb

input:

2
6 8 0
3 5 10

output:

8 8
-1 -1

result:

ok good (2 test cases)

Test #2:

score: -100
Wrong Answer
time: 317ms
memory: 3584kb

input:

200000
611798478556051906 630182047660550624 712293791209079022
853240706540428329 922637400970484112 626594903783173477
197243701653451300 295095047071741142 449297196551949579
839353411868302800 886351194213373918 579004595736495353
939764026573336488 969028156240926594 445397937769727031
19628624...

output:

-1 -1
-1 -1
-1 -1
-1 -1
969028156240926594 523630218471199563
-1 -1
-1 -1
-1 -1
-1 -1
-1 -1
-1 -1
-1 -1
-1 -1
-1 -1
-1 -1
-1 -1
826596167781645146 582048306965097481
-1 -1
-1 -1
944278494492699093 850378651574119545
871279482826246540 778255089171067146
-1 -1
-1 -1
-1 -1
992516657145327111 661676693...

result:

wrong answer you dind't find a solution but jury did (test case 6)