通过
#include<stdio.h>
int startHour[100];}
pressenerror
#include<stdio.h>
int startHour[100];
int main()
{
int startHour,startMinute,finalHour,finalMinute;
int sMinute,fMinute;
int pass;
printf("Program 3 by team X\n");
printf("Initial time Final time Passes\n");
while(scanf("%d%d%d%d",&startHour,&startMinute,&finalHour,&finalMinute)!=EOF)
{
sMinute=(startHour%12)*60+startMinute;
fMinute=(finalHour%12)*60+finalMinute;
pass=(fMinute*11)/720-(sMinute*11)/720;
if(sMinute>fMinute) pass+=11;
printf(" %02d:%02d",startHour,startMinute);
printf(" %02d:%02d%8d\n",finalHour,finalMinute,pass);
}
printf("End of program 3 by team X\n");
return 0;
}