求大佬帮忙看看为啥只有50分,就想着是把他化成分再解题
  • 板块题目总版
  • 楼主SIJDKDCN
  • 当前回复1
  • 已保存回复1
  • 发布时间2024/12/9 20:31
  • 上次更新2024/12/10 11:23:32
查看原帖
求大佬帮忙看看为啥只有50分,就想着是把他化成分再解题
1266284
SIJDKDCN楼主2024/12/9 20:31
#include<bits/stdc++.h>
using namespace std;
int main()
{
	ios::sync_with_stdio(0),cin.tie(0),cout.tie(0);
	int T,t,h,m;
	float s,v;
	cin>>s>>v;
	t=ceil(s/v)+10;//向上取整 
  T=8*60-t;
	h=T/60;
	m=T%60;
	cout<<'0'<<h<<':'<<m;
	return 0;
}
2024/12/9 20:31
加载中...