← Back to List

5596번: 시험 점수 ↗

Solutions

C++14
215 B | 215 chars
#include <iostream>
using namespace std;
int A,S[2],x,y;
int main()
{
    for(y=0; y<2; y++)
        for(x=0; x<4; x++)
        {
            cin>>A;
            S[y]+=A;
        }
    cout<<(S[0]>S[1]?S[0]:S[1]);
}