H3310024438 @ 2024-02-28 23:50:46
#include<iostream>
using namespace std;
int main()
{
int s, v,t,t1,t2 ,h,m ;
cin >> s >> v;
t = ceil (s / v)+10;//向上取整得到行程用时
t1 = floor (t / 60);//向下取整得到小时
t2 = t-(t1*60);//得到分钟
cout << t << endl;
cout << t1 << endl;
cout << t2 << endl;
h = 7 - t1;
m = 60 - t2;
cout << h << ":" << m << endl;
system("pause");
return 0;
}
by fydj @ 2024-02-29 06:52:11
system("pause");
删掉就好
by tang2010 @ 2024-02-29 09:53:45
@H3310024438 换头文件 换成```