链接:
题意:
不看日期只看时间
解:
?
实际代码:
还看!你怎么肥四?
int findDelayedArrivalTime(int arrivalTime, int delayedTime)
{
return (arrivalTime+delayedTime)>=24 ?(arrivalTime+delayedTime-24):arrivalTime+delayedTime;
}
限制:
1 <= arrivaltime < 24
1 <= delayedTime <= 24