就一个WA看着真的会屑
查看原帖
就一个WA看着真的会屑
756220
diaq楼主2022/9/1 14:13
#include<bits/stdc++.h>
using namespace std;

int main(){
	int s,v,a,b,h,m,time=10;
	cin>>s>>v;
	a=60*(24+8);
	time+=ceil(s/v);
	a-=time;
	if(a>=24*60){
		a-=24*60;
	}
	m=a%60;
	h=a/60;
	printf("%02d:%02d",h,m-1);

	return 0;
}

样例是对的但9是错的。。。 快fuo了。。。 大佬帮忙看看救救我

2022/9/1 14:13
加载中...