Run Kart is a Nexon company produced a casual racing race game. Unlike other racing games, the first to run a kart is to add a drift key to the game. The game uses "drift of the people" as a propaganda word, while the characters use the characters in the Bubble Hall, and the characters can drive a kart in the desert, town, forest, Glacier, mine, cemetery and other themes of the game on the track.
Players are rewarded for game props by accumulating game times or accumulating game time. Operators will not regularly launch tasks, as long as the completion of mission requirements, you can get different items, coins, experience. Go to a special track to earn coins or get a gift from a store that doesn't sell. Tasks are done in the form of multiplayer races (some require specific conditions, or at specific locations), race with virtual rivals, and collect props.
The upgraded version of the run-kart, recorded the number of collisions (>=0) during the race, each collision 1 times, the time to take an extra 20 minutes.
Only one line, tournament start time, game end time, number of collisions.
The time it took to run a race.
19:00 19:30 2
70
#include "stdio.h"
int main ()
{
int h1,m1,h2,m2,n,sum=0;
scanf ("%d:%d%d:%d%d", &h1,&m1,&h2,&m2,&n);
if (H1<H2)
Sum= (H2-H1) *60+ (M2-M1) +20*n;
else if (H1==H2)
Sum= (M2-M1) +20*n;
Else
{
Sum= (H2+24-H1) *60+ (M2-M1) +20*n;
}
printf ("%d\n", sum);
return 0;
}
1015 Upgrade Run Go Kart