Wrong Answer
Code
/**
* author: pollob18
* created: July 2024
**/
#include<bits/stdc++.h>
#define ll long long int
#define yes "YES"
#define no "NO"
#define nl "\n"
using namespace std;
void solution()
{
int a,b,c;
cin>>a>>b>>c;
int mx=max({a,b,c});
int mn=min({a,b,c});
int x=mx-mn;
cout<<x/2<<nl;
}
int main()
{
ios::sync_with_stdio(false);
cin.tie(0);
int tc;
cin>>tc;
while(tc--)
{
solution();
}
return 0;
}
Information
- Submit By
- Type
- Submission
- Problem
- P1061 Bring equality
- Contest
- Brain Booster #4
- Language
- C++20 (G++ 13.2.0)
- Submit At
- 2024-07-14 15:48:12
- Judged At
- 2024-11-11 03:25:23
- Judged By
- Score
- 10
- Total Time
- 5ms
- Peak Memory
- 560.0 KiB