5 해설

  • 0
    @ 2025-12-8 1:06:10

    #include<iostream> #include<algorithm> using namespace std; int main() { int t; cin >> t; while(t--){ int n; cin >> n; string a[100]; int b[106]; int sum=0; for(int i=0;i<n;i++){ cin >> a[i]; cin >> b[i]; sum+=b[i]; } sort(b,b+n); if(n!=16){ cout << b[n-1] << " " << b[0] << endl <<"Total number of girls can not be determined!" << endl; } else{ cout << b[n-1] << " " << b[0] << " " <<sum << endl; } } return 0; }

    정보

    ID
    213
    시간
    1000ms
    메모리
    128MiB
    난이도
    5
    태그
    (N/A)
    제출 기록
    563
    맞았습니다.
    206
    아이디