Wrong Answer
Code
#include <iostream>
using namespace std;
int main()
{
int tc;
cin>>tc;
while(tc--){
int a,b,c;
cin>>a>>b>>c;
if (a>=c) cout<<a-c<<" "<<b<<endl;
else {
if(c>=(a+b)){
cout<<0<<" "<<0<<endl;
}
else{
cout<<0<<" "<<b-(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:09:11
- Judged At
- 2025-04-06 16:09:11
- Judged By
- Score
- 10
- Total Time
- 3ms
- Peak Memory
- 540.0 KiB