문제 링크 : https://www.swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AWBnA2jaxDsDFAWr
문제의 저작권은 SW Expert Academy에 있습니다.
#include <iostream> using namespace std; int main(void) { int T; cin >> T; for(int t_case=0; t_case<T; t_case++) { int score, total=0; for(int i=0; i<5; i++) { cin >> score; if(score < 40) score = 40; total += score; } cout << "#" << t_case+1 << " " << total/5 << "\n"; } return 0; } | cs |
'C & C++ > SW Expert Academy' 카테고리의 다른 글
SWEA 1231 - [S/W 문제해결 기본] 9일차 중위순회 (0) | 2018.04.28 |
---|---|
SWEA 1232 - [S/W 문제해결 기본] 9일차 사칙연산 (0) | 2018.04.28 |
SWEA 3376 - 파도반 수열 (0) | 2018.04.28 |
SWEA 1289 - 원재의 메모리 복구하기 (0) | 2018.04.28 |
SWEA 1284 - 수도 요금 경쟁 (0) | 2018.04.28 |