2 solutions
- 1
Information
- ID
- 13
- Time
- 1000ms
- Memory
- 128MiB
- Difficulty
- 6
- Tags
- # Submissions
- 29
- Accepted
- 12
- Uploaded By
#include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b,c,d;
cin>>a>>b>>c>>d;
c+=d;
if(c>=60)
{
b+=c/60;
c%=60;
if(b>=60)
{
a+=b/60;
b=b%60;
}
}
cout<<a<<" "<<b<<" "<<c;
}
By signing up a Hydro universal account, you can submit code and join discussions in all online judging services provided by us.