#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
时间: 2024-10-10 23:41:07
#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