-
Notifications
You must be signed in to change notification settings - Fork 0
/
Sum.java
31 lines (25 loc) · 805 Bytes
/
Sum.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package Divisions.Div4.Round827;
//code by senurah
import java.util.Scanner;
public class Sum {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int t = scanner.nextInt();
if (t >= 1 && t <= 9261) {
for (int i = 0; i < t; i++) {
int a = scanner.nextInt();
int b = scanner.nextInt();
int c = scanner.nextInt();
if((a+b)==c){
System.out.println("YES");
}else if((a+c)==b){
System.out.println("YES");
} else if ((b+c)==a) {
System.out.println("YES");
} else {
System.out.println("NO");
}
}
}
}
}