728x90 반응형 25761 (백준) 2576번 : 홀수 - 자바[JAVA] package test; import java.io.BufferedReader; import java.io.InputStreamReader; public class Test_2576 { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int min = 100; int temp; int sum = 0; for(int i = 0; i < 7; i++) { temp = Integer.parseInt(br.readLine()); if(temp % 2 == 1) { if(temp < min) { min = temp; } sum .. 2021. 9. 10. 이전 1 다음 728x90 반응형