1015 Upgrade Run Go Kart

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.