标签:algo mes sam code input 输出 script style int
样例输入1 0 样例输入2 5436
样例输出1 0:0:0 样例输出2 1:30:36
#include <cstdio> #include <iostream> #include <cmath> #include <cstring> #include <string> #include <algorithm> using namespace std; int main() { int h, m, s, n, miao; scanf("%d", &n); if(n == 0)printf("0:0:0\n"); else { miao = n/60; h = miao/60; m = miao%60; s = n%60; printf("%d:%d:%d\n", h, m, s); } return 0; }
标签:algo mes sam code input 输出 script style int
原文地址:https://www.cnblogs.com/RootVount/p/10386432.html