/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Accepted 2ms 532.0 KiB
#2 Wrong Answer 3ms 536.0 KiB
#3 Wrong Answer 7ms 532.0 KiB

Code

//In the name of Allah
#include<bits/stdc++.h>
using namespace std;
#define rep(i, a, b) for (int i = (a); i < (b); i++)
#define rrep(i, a, b) for(int i = (b) - 1; i >= (a); i--)
#define ll long long int
#define nl << '\n'
#define yes "YES\n"
#define no "NO\n"
#define sp <<' '
const int N = 2e5 + 5;
#define pb push_back
#define tt() int t; cin >> t; while(t--)
//map<string, string> ans,has;
void solve(){
    ll a, b, x;
    cin >> a >> b >> x;
    if(x>=(a+b))
        cout << 0 << " " << 0 nl;
        else{
            a -= x;
            if(a<0)
                {a = 0;
                    b += a;
                }
                cout << a << " " << b << endl;
        }
}


int main(){
tt()
solve();
 
return 0;
}

Information

Submit By
Type
Submission
Problem
P1187 Ticket Battle: Hridoy vs Kamona
Language
C++17 (G++ 13.2.0)
Submit At
2025-04-06 18:42:38
Judged At
2025-04-06 18:42:38
Judged By
Score
10
Total Time
7ms
Peak Memory
536.0 KiB