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的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: c语言如何判断密码不同字符,C语言从文本
- 下一篇: 求二叉树指定结点到根的路径c语言,二叉树