백준 #28113번 정보섬의 대중교통

jhj·2024년 2월 4일

백준 JAVA

목록 보기
126/583
import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		
		int n = sc.nextInt();
		int a = sc.nextInt();
		int b = sc.nextInt();
		int subway;
		
		if(n <= b && b == a) {
			System.out.println("Anything");
		}else if(n <= b && b - a > 0) {
			System.out.println("Bus");
		}else {
			System.out.println("Subway");
		}
		sc.close();
	}
}
profile
개발자를 꿈꾸는

0개의 댓글