为什么只有50分???蒟蒻求助
查看原帖
为什么只有50分???蒟蒻求助
930714
zbr121115楼主2024/7/7 15:34

大佬帮帮忙_orz_

#include<bits/stdc++.h>
using namespace std;
int main()
{
	ios::sync_with_stdio(false);
	cin.tie(NULL);
	cout.tie(NULL);
	int s,v,c,t1,t,o;
	cin>>s>>v;
	if (v>=s){
		c=11;
	}else if (s%v!=0){
		c=s/v+1+10;
	}else{
		c=s/v+10;
	}
	t=c%1440;
	if (t>=480){
		t=1440-(t-480);
		cout<<"0"<<t/60<<":"<<t%60;
	}else{
		t=480-t;
		cout<<"0"<<t/60<<":"<<t%60;
	}
	return 0;
}

本蒟蒻太cai误喷

2024/7/7 15:34
加载中...