[문제 링크] : https://www.acmicpc.net/problem/20053#include using namespace std;int main(){ ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); int T, N, inp, Maxi, Mini; cin >> T; while(T--){ cin >> N; Maxi = -1111111; Mini = 1111111; for(int i=0; i> inp; Maxi = max(Maxi, inp); Mini = min(Mini, inp); } cout