Problem R: 零起点学算法13——求2个时间之间的分钟数

#include<stdio.h>
int main()
{
    int a1,b1,a2,b2,s;
    scanf("%d:%d",&a1,&b1);
    scanf("%d:%d\n",&a2,&b2); 
    s=b2-b1-1;
    printf("%d",s);
    return 0;
} 

 

posted @ 2018-09-28 18:28  MichaelCecil  阅读(544)  评论(0编辑  收藏  举报