Wrong Answer
Code
#include<bits/stdc++.h>
using namespace std;
int main(){
int t;
cin >> t;
while(t--){
long long a,b,x,sum=0;
cin >> a>>b>>x;
sum=a-x;
if(sum==x){
cout << sum << " "<< b << endl;
}
else{
cout << a-b<< " "<<a-b<<endl;
}
}
}
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:50:43
- Judged At
- 2025-04-06 15:50:43
- Judged By
- Score
- 10
- Total Time
- 3ms
- Peak Memory
- 560.0 KiB