백준 #32775번 가희와 4시간의 벽 1

jhj·2024년 12월 29일

백준 JAVA

목록 보기
517/583
import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		
		int h = sc.nextInt();
		int f = sc.nextInt();
		
		if(h > f) {
			System.out.println("flight");
		}else {
			System.out.println("high speed rail");
		}
		sc.close();
	}
}
profile
개발자를 꿈꾸는

0개의 댓글