반응형
정말 단순한 문제~
import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int N = Integer.parseInt(br.readLine());
int result = 0;
for (int i = 0; i < N; i++) {
StringTokenizer st = new StringTokenizer(br.readLine());
int a = Integer.parseInt(st.nextToken());
int b = Integer.parseInt(st.nextToken());
int c = Integer.parseInt(st.nextToken());
int k = Math.min(a,b);
result = Math.min(k,c);
System.out.println(result);
}
}
}
반응형
'백준 > 기타 문제' 카테고리의 다른 글
백준 23627 자바 (0) | 2022.11.04 |
---|---|
백준 17838 자바 (0) | 2022.11.04 |
백준 25377 자바 (0) | 2022.11.01 |
백준 10810 자바 (1) | 2022.09.24 |
백준 1920 수 찾기 (0) | 2022.05.26 |