2068. 최대수 구하기

호찌 Hozzi ·2022년 5월 18일
0

알고리즘

목록 보기
12/18

#include<iostream>

using namespace std;

int main(int argc, char** argv)
{
	int test_case;
	cin>>test_case;

	for(int b = 1; b <= test_case; b++)
	{
         int temp;
        temp = -1;
        for (int i = 0; i <= 10; i ++ ){
            int a;
            cin >>a;
    
   	        if (a > temp)
            temp = a;
      	 }
		cout << "#" << b << " " << temp << endl;
	}
	return 0;//정상종료시 반드시 0을 리턴해야합니다.
}
profile
코린이

0개의 댓글