Wrong Answer
Code
#include<iostream>
using namespace std;
int main()
{
int d,a,b,c,e,f;
cin>>d;
for(int i=0;i<d;i++)
{
cin>>a>>b>>c;
if(c<=a)
{
e=a-c;
f=b;
}
else
{
e=0;
f=b-(c-a);
}
cout<<e<<" "<<f<<"\n";
}
}
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:31:28
- Judged At
- 2025-04-06 16:31:28
- Judged By
- Score
- 10
- Total Time
- 3ms
- Peak Memory
- 540.0 KiB