Wrong Answer
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
{
cout<<0<< " ";
if(b>(c-a))
{
cout<<b-c-a<<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 15:57:03
- Judged At
- 2025-04-06 15:57:03
- Judged By
- Score
- 10
- Total Time
- 3ms
- Peak Memory
- 540.0 KiB