반응형
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
public class Main {
public static void main(String[] args) throws Exception{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
int[] list = new int[9];;
for(int i = 0; i < 9; i++) {
list[i] = Integer.parseInt(br.readLine());
}
int max = -100;
int cnt = 0;
for(int i = 0; i < 9; i++) {
if(max < list[i]) {
max = list[i];
cnt = i + 1;
}
}
}
}
http://colorscripter.com/info#e" target="_blank" style="color:#e5e5e5text-decoration:none">Colored by Color Scripter
|
반응형
'IT > 알고리즘' 카테고리의 다른 글
코테 11/25/19 (0) | 2019.11.25 |
---|---|
기초 알고리즘(38번 치킨쿠폰 재귀) (0) | 2019.11.24 |
백준 5단계(10818) (0) | 2019.11.23 |
백준 4단계(11/23/19)(10952, 10951, 1110) (0) | 2019.11.23 |
백준 3단계(11/23/19)(2739, 10950, 8393, 15552, 2741, 2742, 11021, 11022, 2438, 2439, 10871) (0) | 2019.11.23 |