Accepted
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