/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Accepted 1ms 484.0 KiB
#2 Wrong Answer 28ms 584.0 KiB
#3 Wrong Answer 29ms 572.0 KiB

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