Wrong Answer
Code
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
int t;
cin >> t;
while(t--){
long long a, b, c;
cin >> a >> b >> c;
long long max_value = max(a, max(b,c));
long long min_value = min(a, min(b,c));
long long K = int((max_value-min_value)/2);
cout << K << 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:19:41
- Judged At
- 2024-11-11 03:24:23
- Judged By
- Score
- 10
- Total Time
- 29ms
- Peak Memory
- 584.0 KiB