题目描述
While循环法
样例
#include <bits/stdc++.h>
using namespace std;
int main ()
{
int s=0,m=0,h=0;
cin >> s;
while ( s - 60 > 0 ) m++ , s -= 60;
while ( m - 60 > 0 ) h++ , m -= 60;
cout << h << ":" << m << ":" << s ;
return 0;
}