Accepted
Code
#include <iostream>
using namespace std;
int main()
{
int t;
cin>>t;
while(t--)
{
int a,b,c;
cin>>a>>b>>c;
if(a>c)
{
cout<<a-c<< " "<<b<< "\n";
}
else
{
int r = c-a;
cout<<0<< " ";
if(b>=r)
{
cout<<b-r<<endl;
}
else cout<<0<<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 16:00:19
- Judged At
- 2025-04-06 16:00:19
- Judged By
- Score
- 100
- Total Time
- 259ms
- Peak Memory
- 1.293 MiB