Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
4979 | 邓小龙 | 时间换算 | C++ | Wrong Answer | 0 MS | 268 KB | 354 | 2024-10-19 09:01:16 |
#include<iostream> // cin\cout\endl #include<iomanip> //秒数t->t/3600 hour //转天数:t/24/3600 day //转周:t/24/3600/7 using namespace std; int main(){ double t; cin>>t; cout<<fixed<<setprecision(2); cout<<t/3600<<"hour"<<endl; cout<<t/3600/24<<"day"<<endl; cout<<t/3600/24/7<<"week"<<endl; return 0; }
------Input------
963852741
------Answer-----
4.11hour 0.17day 0.02week
------Your output-----
267736.87hour 11155.70day 1593.67week