题解 | #时间转换#
时间转换
https://www.nowcoder.com/practice/c4ae7bcac7f9491b8be82ee516a94899
#include <iostream> using namespace std; int main() { int n,h,m,s; cin>>n; h=n/3600; n=n%3600; m=n/60; s=n%60; cout<<h<<" "<<m<<" "<<s<<endl; return 0; }
时间转换
https://www.nowcoder.com/practice/c4ae7bcac7f9491b8be82ee516a94899
#include <iostream> using namespace std; int main() { int n,h,m,s; cin>>n; h=n/3600; n=n%3600; m=n/60; s=n%60; cout<<h<<" "<<m<<" "<<s<<endl; return 0; }
相关推荐