Wrong Answer
Code
#include<bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
int t; cin>>t;
while (t--)
{
int a,b,x;
cin>>a>>b>>x;
if (a>=x){
a = a=x;
cout<<a<<" "<<b<<endl;
}
else if ((a+b)<=x) {
cout<<0<<" "<<0<<endl;
}
else{
x = x-a;
b = b -x;
cout<<0<<" "<<b<<endl;
}
}
return 0;
}
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 15:38:44
- Judged At
- 2025-04-06 15:38:44
- Judged By
- Score
- 10
- Total Time
- 5ms
- Peak Memory
- 532.0 KiB