Blame view

P37469_en/S001-AC.cc 261 Bytes
Imanol-Mikel Barba Sabariego authored
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <iostream>

using namespace std;

int main()
{
	double x;
	cin >> x;

	int hours = x/3600;
	int minutes = (x - (hours*3600))/60;
	int seconds = x - (hours*3600) - (minutes*60);

	cout << hours << " " << minutes << " " << seconds << endl;

	return 0;
}