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;
if(A>X){
cout<<A-X<<" "<<B;
}
else{
int p = A-X+B;
cout<<"0"<<" "<<p;
}
}
}
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:40:52
- Judged At
- 2025-04-06 15:40:52
- Judged By
- Score
- 0
- Total Time
- 1ms
- Peak Memory
- 448.0 KiB