1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
| import java.util.Scanner;
public class DRAWRECT {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int cases = sc.nextInt();
while (cases-- > 0) {
int x[] = new int[3];
int y[] = new int[3];
x[0] = sc.nextInt();
y[0] = sc.nextInt();
x[1] = sc.nextInt();
y[1] = sc.nextInt();
x[2] = sc.nextInt();
y[2] = sc.nextInt();
System.out.println((x[0]==x[1]?x[2]:x[0]==x[2]?x[1]:x[0])+" "+(y[0]==y[1]?y[2]:y[0]==y[2]?y[1]:y[0]));
}
}
}
|
댓글 없음:
댓글 쓰기