-
[브론즈 Ⅴ] 16099번 :: Larger Sport Facility / Java백준/브론즈 2023. 2. 22. 16:11
문제
https://www.acmicpc.net/problem/16099
코드
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int t = Integer.parseInt(br.readLine()); StringTokenizer st; for(int i=0; i<t; i++) { st = new StringTokenizer(br.readLine()); long lt = Long.parseLong(st.nextToken()); long wt = Long.parseLong(st.nextToken()); long le = Long.parseLong(st.nextToken()); long we = Long.parseLong(st.nextToken()); if(lt*wt > le*we) { System.out.println("TelecomParisTech"); } else if(lt*wt < le*we) { System.out.println("Eurecom"); } else { System.out.println("Tie"); } } } }
'백준 > 브론즈' 카테고리의 다른 글
[브론즈 Ⅴ] 24736번 :: Football Scoring / Java (0) 2023.02.23 [브론즈 Ⅴ] 23235번 :: The Fastest Sorting Algorithm In The World / Java (0) 2023.02.22 [브론즈 Ⅴ] 11718번 :: 그대로 출력하기 / Java (0) 2023.02.22 [브론즈 Ⅴ] 10872번 :: 팩토리얼 / Java (0) 2023.02.22 [브론즈 Ⅴ] 10809번 :: 알파벳 찾기 / Java (0) 2023.02.22