求大佬指点
查看原帖
求大佬指点
1464200
liyunranElsa楼主2024/9/25 21:45

求大佬指点

得到哪错了!!!

一直是70分!!!

#include <bits/stdc++.h>
using namespace std;
  
int main() {
   int a,b,c,d,t,t1;
	double s,v;
	scanf("%lf%lf",&s,&v);
	t=ceil(s/v)+10;
	if(t>24*60){
		t=24*60;
	}
	t1=t/60;
    b=60-t%60; 
	if(t1>8) a==32-t1-1;
	else a=7-t1;
	if(b==60){
		a++;
		b=0;
	}	
	printf("%02d:%02d",a,b);

    return 0;
 }    




2024/9/25 21:45
加载中...