Wrong Answer
Code
#include<bits/stdc++.h>
using namespace std;
int main()
{
int t;
cin>>t;
while(t--){
int a,b,x;
cin>>a>>b>>x;
int A,B;
if(a>=x){
cout<<a-x<<" "<<b<<"\n";
}
else{
cout<<0<<" "<<b-(x-a)<<"\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:29:03
- Judged At
- 2025-04-06 16:29:03
- Judged By
- Score
- 10
- Total Time
- 4ms
- Peak Memory
- 764.0 KiB