大佬们帮忙看看编译失败是什么原因呢
查看原帖
大佬们帮忙看看编译失败是什么原因呢
1291091
H3310024438楼主2024/2/28 23:50
#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;
}
2024/2/28 23:50
加载中...