题解 | #时间转换#
时间转换
https://ac.nowcoder.com/acm/contest/18839/1031
#include<bits/stdc++.h> using namespace std; int main() { int a; cin>>a; int h=a/3600; int min=(a-3600*h)/60; int s=a-3600*h-min*60; cout<<h<<" "<<min<<" "<<s<<endl; }
时间转换
https://ac.nowcoder.com/acm/contest/18839/1031
#include<bits/stdc++.h> using namespace std; int main() { int a; cin>>a; int h=a/3600; int min=(a-3600*h)/60; int s=a-3600*h-min*60; cout<<h<<" "<<min<<" "<<s<<endl; }
相关推荐