백준 #5063번 TGN

jhj·2024년 5월 28일

백준 JAVA

목록 보기
504/583
import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		
		int n = sc.nextInt();
		for(int i = 0; i < n; i++) {
			int r = sc.nextInt();
			int e = sc.nextInt();
			int c = sc.nextInt();
			
			if(e - r > c) {
				System.out.println("advertise");
			}else if(e - r == c) {
				System.out.println("does not matter");
			}else {
				System.out.println("do not advertise");
			}
		}
		sc.close();
	}
}
profile
개발자를 꿈꾸는

0개의 댓글