c卡在70分了求助
查看原帖
c卡在70分了求助
1165047
Koishi514ww楼主2023/11/14 21:41
#include<stdio.h>
int main()
{
	int s, v;
	scanf("%d%d", &s, &v);
	int t;
	if (s % v == 0)
		t = s / v + 10;
	else
		t = s / v + 11;
	int h;
	if (t / 60 > 0)
		{
            h = t / 60;
		    t -= h * 60;
        }
	else if (t / 60 == 0)
            h = 0;
    printf("%02d:%02d",7-h,60-t);
	return 0;
}
2023/11/14 21:41
加载中...