#include<stdio.h>
#include<string.h>
#include<iostream>
using namespace std;
int main()
{
char a[20];
double v,ans=0;
int oldtime=0,newtime;
while(gets(a))
{
int len=strlen(a);
newtime=((a[0]-'0')*10+(a[1]-'0'))*3600+((a[3]-'0')*10+(a[4]-'0'))*60+(a[6]-'0')*10+(a[7]-'0');
ans+=1.0*(newtime-oldtime)/3600*v;
oldtime=newtime;
if(len>10) //需要改变速度
{
v=0;
#include<string.h>
#include<iostream>
using namespace std;
int main()
{
char a[20];
double v,ans=0;
int oldtime=0,newtime;
while(gets(a))
{
int len=strlen(a);
newtime=((a[0]-'0')*10+(a[1]-'0'))*3600+((a[3]-'0')*10+(a[4]-'0'))*60+(a[6]-'0')*10+(a[7]-'0');
ans+=1.0*(newtime-oldtime)/3600*v;
oldtime=newtime;
if(len>10) //需要改变速度
{
v=0;