Wrong Answer
Code
#include<bits/stdc++.h>
using namespace std;
int main(){
long T, A, B, X;
cin >> T;
for(int i = 1; i<= T; i++){
cin >> A >> B >> X;
if(A >= X){
cout << A-X << " " << B << endl;
}
else{
cout << 0 << " " << X-(A+B)<< endl;
}
}
return 0;
}
Information
- Submit By
- Type
- Submission
- Problem
- P1187 Ticket Battle: Hridoy vs Kamona
- Language
- C++17 (G++ 13.2.0)
- Submit At
- 2025-04-07 06:05:25
- Judged At
- 2025-04-07 06:05:25
- Judged By
- Score
- 10
- Total Time
- 3ms
- Peak Memory
- 552.0 KiB