← Back to List

5554번: 심부름 가는 길 ↗

Solutions

C++14
161 B | 161 chars
#include <iostream>
using namespace std;
int A,S;
int main()
{
    for(int x=0; x<4; x++)
    {
        cin>>A;
        S+=A;
    }
    cout<<S/60<<endl<<S%60;
}