3 条题解
-
112228王晨 (12228王晨) LV 7 @ 2021-10-31 20:42:17
#include<iostream>
using namespace std;
int main( )
{
int h,m,x;
cin>>x;
h=x/3600;
m=(x-h*3600)/60;
x=x-h*3600-m*60;
cout<<h<<" "<<m<<" "<<x;
return 0;
} -
02021-11-21 21:17:43@
#include <iostream>
using namespace std;
int main()
{
int x;
cin>>x;
cout<<x/3600;
cout<<' ';
cout<<(x-x/3600*3600)/60;
cout<<' ';
cout<<x-(x/3600*3600)-((x-x/3600*3600)/60)*60;
return 0;
} -
02021-10-23 08:53:44@
#include<iostream>
#include<iomanip>
#include<cmath>
using namespace std;
int main()
{
long long h,m,s;
cin>>s;
h=s/3600;
m=(s-h*3600)/60;
s=s-h*3600-m*60;
cout<<h<<" "<<m<<" "<<s;
return 0;
}
- 1
信息
- ID
- 1710
- 难度
- 2
- 分类
- (无)
- 标签
- 递交数
- 265
- 已通过
- 155
- 通过率
- 58%
- 被复制
- 5
- 上传者