#include<stdio.h> int main() { int h1,m1,h2,m2,s; while(scanf("%d:%d %d:%d",&h1,&m1,&h2,&m2)!=EOF) { s=(h1-h2)*60+m2-m1-1; printf("%d",s); } return 0; }
#include<stdio.h> int main() { int h1,m1,h2,m2,s; while(scanf("%d:%d %d:%d",&h1,&m1,&h2,&m2)!=EOF) { s=(h1-h2)*60+m2-m1-1; printf("%d",s); } return 0; }
转载于:https://www.cnblogs.com/Estwind/p/9716211.html