上学迟到的虎杖

#define _CRT_SECURE_NO_WARNINGS 1
#include
int main()
{
	int s, v,time;
	scanf("%d %d", &s, &v);
	if (s % v == 0)
	{
		time = s / v + 10;
	}
	else
	{
		time = s / v + 11;
	}
	int hour = time / 60;
	int minue = time % 60;
	int gotime = 7;
	if (time >= 8 * 60)
	{
		gotime += 24;
	}
	printf("%02d:%02d", gotime - hour, 60 - minue);
	return 0;
}

你可能感兴趣的:(每日一题,算法,学习,经验分享)