언어, 알고리즘 공부/백준2020. 3. 17. 21:41[백준 알고리즘] 10039번 평균 점수 (Python, Java)
sum = 0 for _ in range(5): score = int(input()) if score < 40: score = 40 sum += score print(int(sum/5)) import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int sum = 0; for( int i=0; i