2070. 큰 놈, 작은 놈, 같은 놈
import java.util.Scanner;
public class Solution {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner stdIn = new Scanner(System.in);
int N = stdIn.nextInt();
int number = 1;
for (int i = 0; i < N ; i ++ ) {
int A = stdIn.nextInt();
int B = stdIn.nextInt();
int C = A-B;
if(C > 0 ) {
System.out.println("#" + number +" >");number++;
}
else if(C < 0) {
System.out.println("#" + number +" <");number++;
}
else {
System.out.println("#" + number +" =");number++;
}
}
}
}
참고자료