S001-AC.cc 261 Bytes Edit Raw Blame History 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; }