Wrong Answer
Code
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
int t;
cin >> t;
while(t--){
int a, b, c;
cin >> a >> b >> c;
int max_value = max(a, max(b,c));
int min_value = min(a, min(b,c));
int operations = (max_value-min_value)/2;
cout << operations << endl;
}
}
Information
- Submit By
- Type
- Submission
- Problem
- P1061 Bring equality
- Contest
- Brain Booster #4
- Language
- C++11 (G++ 13.2.0)
- Submit At
- 2024-07-14 16:14:11
- Judged At
- 2024-11-11 03:24:30
- Judged By
- Score
- 10
- Total Time
- 29ms
- Peak Memory
- 564.0 KiB