文章
10
粉丝
0
获赞
52
访问
1.9k
#include <iostream>
using namespace std;
int hour_time[24] = {13,14,15,16,17,18,19,20,21,22,23,0,1,2,3,4,5,6,7,8,9,10,11,12};
int main()
{
int types;
scanf("%d",&types);
int hours,minutes;
while(types--)
{
scanf("%d:%d",&hours,&minutes);
int mature_minutes = 0;
int mature_hours = 0;
if(15+ minutes < 60) // 分钟不进位
{
mature_minutes += 15+minutes;
}
if(15+ minutes >= 60) // 分钟进位
{
mature_hours += 1;
&nb...
登录后发布评论
暂无评论,来抢沙发