Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|---|
1610 | 张曦元 | 时分秒转换 | C++ | Accepted | 100 | 0 MS | 252 KB | 269 | 2019-10-14 19:46:56 |
#include <iostream> #include <string> using namespace std; int main() { int s; cin>>s; int hour,minute,second; hour=s/(60*60); minute=(s-hour*60*60)/60; second=s-hour*60*60-minute*60; cout<<hour<<":"<<minute<<":"<<second<<endl; }