Home > Back-end >  C, don't read the title, what a great god help me
C, don't read the title, what a great god help me

Time:05-04

Xiao Ming classmate at time t1, t2 distance movement,
College class time is eight o 'clock in the morning, xiao Ming classmate 7 a.m. after dinner in the canteen, at a speed of 100 m/min walk to the classroom, but to walk for ten minutes after xiao Ming found a watch on the watch have five to seven points (is actually watch is broken), xiao Ming felt worried immediately started running, xiao Ming running speed is 150 m/min, ran after 10 minutes, xiao Ming hear phone ringing, it was he set the alarm clock, it's only seven o 'clock 50! And has only 500 m distance from the classroom, so xiao Ming to slow down, just at a speed of 50 m/min at 8 o 'clock arrived at the classroom, the class begins, now input time points t1, t2, t1, t2 and t1 between 7:30 p.m. to 8:00
[input sample] at 7:30 at 7:40
[output sample] 1000 m
[input sample] 7:40 8:00
The output sample 2000 meters

CodePudding user response:

Homework yourself, ha, ha, ha,

CodePudding user response:

Time is different, different speed,
Journey time x speed=