/ SeriousOJ /

Record Detail

Accepted


  
# Status Time Cost Memory Cost
#1 Accepted 0ms 320.0 KiB
#2 Accepted 0ms 284.0 KiB
#3 Accepted 0ms 284.0 KiB
#4 Accepted 0ms 284.0 KiB
#5 Accepted 0ms 320.0 KiB
#6 Accepted 0ms 284.0 KiB
#7 Accepted 0ms 284.0 KiB
#8 Accepted 0ms 284.0 KiB
#9 Accepted 0ms 284.0 KiB
#10 Accepted 0ms 284.0 KiB
#11 Accepted 0ms 320.0 KiB
#12 Accepted 0ms 324.0 KiB
#13 Accepted 0ms 320.0 KiB

Code

#include <stdio.h>
#include <stdlib.h>

int main() {
    int a_1, a_2, a_3, average,sum_1,sum_2,sum_3;
    scanf("%d %d %d", &a_1, &a_2, &a_3);


    average = (a_1 + a_2 + a_3) / 3;

    
    sum_1 = average - a_1;
    sum_2 = average - a_2;
    sum_3 = average- a_3;

    printf("%d %d %d\n", sum_1, sum_2, sum_3);

    return 0;
}

Information

Submit By
Type
Submission
Problem
P1130 Angle Equalizer
Contest
Happy New Year 2025
Language
C++17 (G++ 13.2.0)
Submit At
2025-01-02 14:48:49
Judged At
2025-01-02 14:48:49
Judged By
Score
100
Total Time
0ms
Peak Memory
324.0 KiB