Accepted
Code
#include<bits/stdc++.h>
#define ll long long
using namespace std;
int main() {
int t;
cin >> t;
while (t--){
ll a, b, c;
cin >> a >> b >> c;
if (a + b <= c) cout << "0 0" << endl;
else{
ll mn = min(c, a);
a -= mn, c -= mn;
mn = min(b, c);
b -= mn;
cout << a << " " << b << endl;
}
}
}
Information
- Submit By
- Type
- Submission
- Problem
- P1187 Ticket Battle: Hridoy vs Kamona
- Contest
- Brain Booster #9
- Language
- C++17 (G++ 13.2.0)
- Submit At
- 2025-04-06 16:03:11
- Judged At
- 2025-04-06 16:03:11
- Judged By
- Score
- 100
- Total Time
- 280ms
- Peak Memory
- 1.301 MiB