문제 링크 : https://www.swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AV5QQhbqA4QDFAUq


문제의 저작권은 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 max = -1, num;
 
        for(int i=0; i<10; i++) {
            cin >> num;
            if(num > max)
                max = num;
        }
 
        cout << "#" << t_case+1 << " " << max << "\n";
    }
}
cs

'C & C++ > SW Expert Academy' 카테고리의 다른 글

SWEA 2058 - 자릿수 더하기  (0) 2018.04.27
SWEA 2063 - 중간값 찾기  (0) 2018.04.27
SWEA 2070 - 큰 놈, 작은 놈, 같은 놈  (0) 2018.04.27
SWEA 2071 - 평균값 구하기  (0) 2018.04.27
SWEA 2072 - 홀수만 더하기  (0) 2018.04.27

+ Recent posts