Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
Tags
- BOJ
- dfs
- 프로그래머스
- Java
- 코테
- SWEA
- 러닝일지
- BFS
- 운동기록
- COS PRO
- 자바
- db
- binary search
- 알고리즘
- 코딩테스트
- priorityqueue
- 문제해결
- 이분탐색
- oracle
- 문자열
- math
- 문제풀이
- 시뮬레이션
- MySQL
- 투포인터
- 백준
- 건강
- greedy
- SQL
- DP
Archives
- Today
- Total
슈콩
[SWEA] 보충학습과 평균 본문

[문제]
https://swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AWBnA2jaxDsDFAWr
SW Expert Academy
SW 프로그래밍 역량 강화에 도움이 되는 다양한 학습 컨텐츠를 확인하세요!
swexpertacademy.com
[소스 코드]
import java.io.*;
import java.util.*;
public class Solution {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st;
int T = Integer.parseInt(br.readLine());
for(int tc=1;tc<=T;tc++) {
int result = 0;
st = new StringTokenizer(br.readLine());
for(int i=0;i<5;i++) {
int score = Math.max(40, Integer.parseInt(st.nextToken()));
result += score;
}
System.out.println("#"+tc+" "+(result/5));
}
}
}'Algorithms > SWEA' 카테고리의 다른 글
| [SWEA] 소득 불균형 (0) | 2025.11.19 |
|---|---|
| [SWEA] 그래프의 삼각형 (0) | 2025.11.19 |
| [SWEA] Digit sum (0) | 2025.11.18 |
| [SWEA] 동철이의 프로그래밍 대회 (0) | 2025.11.18 |
| [SWEA] 두가지 빵의 딜레마 (0) | 2025.11.18 |