what
查看原帖
what
1004343
wangjingtian1楼主2023/8/24 20:36
#include <bits/stdc++.h>
using namespace std;
int main(){
	int s,v;
	cin>>s>>v;
	int z=s/v;
	int quyu=s%v;
	if(quyu!=0){
		z++;
	}
	int time1=480-10;
	int time2=time1-z;
	if(time2/60<10){
		cout<<"0"<<time2/60;
	}else{
		cout<<time2/60;
	}
	cout<<":";
	if(time2%60<10){
		cout<<"0"<<time2%60;
	}else{
		cout<<time2%60;
	}
} 
2023/8/24 20:36
加载中...