EPS/2024/01/29-01-24/sum.c

29 lines
456 B
C

#include <stdio.h>
#include <stdlib.h>
int max(int a, int b) {
return a > b ? a : b;
}
int is_sum(int a, int b, int c) {
return a+b+c == max(a, max(b, c))*2;
}
int main() {
int count;
scanf("%d", &count);
int a, b, c;
for (int i=0; i < count; i++) {
scanf("%d %d %d", &a, &b, &c);
if (is_sum(a, b, c)) {
printf("YES\n");
} else {
printf("NO\n");
}
}
return 0;
}