编程介的小学生 2019-08-28 17:43 采纳率: 20.5%
浏览 70

Watch Channel[V] 程序编写实现

Problem Description
When talking about entertainment,Samuel prefers listening to music than anything else. Of all the Chinese singers,Samuel mostly enjoys the songs of Taiwan girl band S.H.E.
Do you have any likes and dislikes in choosing whose songs to enjoy?And Samuel is fond of watching Channel[V].But Samuel has a bad habit. When the singer does not match his taste,he will immediately switch the channel.
Samuel likes S.H.E,Jay,Elva,Jolin,Aska,and Yoga(Pay more attention to the spelling please!Use them according to what Samuel gives you or you may get wrong answer). Suppose Samuel don't like any other singers., you are asked to tell how long will Samuel stay in front of the TV according to a list of the MVs that are planned to be broadcast in Channel[V].

Input
The input will be 2 part:
the first line only contain a number t,which means the number of test cases. The first line of each test case will be the n MVs that will be broadcast,and each of the following n lines will be the MV's singer and each of the MV will take MM:SS time.

Output
Output in this format”Samuel will watch Channel[V] for H hour(s),M minute(s),S second(s).”

Sample Input
1
3
S.H.E 03:40
Jay 04:50
Elva 05:35

Sample Output
Samuel will watch Channel[V] for 0 hour(s),14 minute(s),5 second(s).

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 高价求中通快递查询接口
    • ¥15 解决一个加好友限制问题 或者有好的方案
    • ¥15 关于#java#的问题,请各位专家解答!
    • ¥15 急matlab编程仿真二阶震荡系统
    • ¥20 TEC-9的数据通路实验
    • ¥15 ue5 .3之前好好的现在只要是激活关卡就会崩溃
    • ¥50 MATLAB实现圆柱体容器内球形颗粒堆积
    • ¥15 python如何将动态的多个子列表,拼接后进行集合的交集
    • ¥20 vitis-ai量化基于pytorch框架下的yolov5模型
    • ¥15 如何实现H5在QQ平台上的二次分享卡片效果?