Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
5041 | yusuorong | 时分秒转换 | C++ | 通过 | 100 | 0 MS | 248 KB | 212 | 2020-07-26 16:33:18 |
#include<bits/stdc++.h> using namespace std; int main(){ int a,shi,fen,miao; cin>>a; shi=a/(60*60); fen=(a-60*60*shi)/60; miao=(a-60*60*shi)%60; cout<<shi<<":"<<fen<<":"<<miao<<endl; return 0; }