-->
当前位置:首页 > 题库

PROGRAMMING:LC wants to watch animation

Luz5年前 (2021-05-10)题库431
As we all know, $$LC $$is a $$acmer $$and an old two thorn newt. In order to train him, he can unload the game, but not watch animation! Now it is known that today's training will start at $$hH1: MM1 $, lasting for $$n $$minutes, and the latest episode of animation will be updated at $$HH2: mm2 $$, $$LC $$wants to know whether he can finish the training before the animation update, but he is too tired to do basic addition and subtraction. Can you help him?
###Input format:
In the first line, give an integer $$t (1 < = T < = 5) $, which represents the input data of the total $$t $$group.
Next, $$t $$line, each line in the format of $$hH1: MM1 $$$HH2: mm2 $$gives the start time of training and the update time of the latest animation episode, as well as a positive integer $$n (1 < = n < 1440) $, which means that the training will last for $$n $$minutes.
Input data to ensure that the two times are legal time of $$24 $$hour system, and the animation update time must be after the training start time, with an interval of no more than $$24 $$hours.
###Output format:
For each group of input data, output a line. If $$LC $$can finish the training before the animation update, output "whqf", otherwise output "wuwuwu", without quotation marks.
###Input example:
```in
three
13:00 21:00 480
23:58 00:02 3
21:00 01:01 240
```
###Output example:
```out
wuwuwu
whqf
whqf
```







answer:If there is no answer, please comment