欢迎访问 生活随笔!

生活随笔

当前位置: 首页 > 编程资源 > 编程问答 >内容正文

编程问答

c语言初学者百题大战答案七,C语言百题大战2405how many minutes

发布时间:2025/3/20 编程问答 37 豆豆
生活随笔 收集整理的这篇文章主要介绍了 c语言初学者百题大战答案七,C语言百题大战2405how many minutes 小编觉得挺不错的,现在分享给大家,帮大家做个参考.

(2405)How many minutes?——C语言初学者百题大战之六

Time Limit:1000MS Memory Limit:65536K

Total Submit:5331 Accepted:3239

Description

How many minutes do you spend on the problem?

Input

The input consists of two lines.

The first line contains two integer h1 and m1, separated from the symbol :, and h1:m1 is the time you begin to do the problem.

The second line contains two integer h2 and m2, separated from the symbol :, and h2:m2 is the time you finished the problem.

Output

You should output how many minutes you have spended on the problem on one line. Sample Input

9:10

9:20

Sample Output

10

Source

yhr

答案:

#include

int main()

{

int h1,h2,m1,m2,s;

scanf("%d:%d",&h1,&m1);

总结

以上是生活随笔为你收集整理的c语言初学者百题大战答案七,C语言百题大战2405how many minutes的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。