Poj Solution 3030

http://poj.org/problem?id=3030

//* @author popop0p0popo
import java.util.*;
import java.io.*;

public class Main{
 public static void main(String[] args){
  Scanner scanner=new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        int n=scanner.nextInt();
        int r,e,c;
        for (int i=0;i< n ;i++ ){
            r=scanner.nextInt();
            e=scanner.nextInt();
            c=scanner.nextInt();
            if (r< e-c){
                System.out.println("advertise");
            }
            else if (r==e-c){
                System.out.println("does not matter");
            }
            else{
                System.out.println("do not advertise");
            }
        }
    }
}


											
This entry was posted in poj. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *