Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
356074 | 俞皓天 | 【C1-T】将秒换算成天、时、分、秒 | C++ | 解答错误 | 0 | 3 MS | 244 KB | 222 | 2025-10-15 21:33:14 |
#include<iostream> using namespace std; int main(){ int z; cin>>z; int t,x,f,m; t=z/86400; x=z%86400/3600; f=z%3600/60; m=z%60; cout<<z<<"="<<t<<"天"<<x<<"小时"<<f<<"分钟"<<m<<"秒"; return 0; }