>>685

#include  <stdio.h>

/* 7時25分12.33秒 なら 7 25 12.33 と入力 */

typedef  struct  _stime  {
  int  hour;
  int  minute;
  float  second;
}  stime;

void  safety(stime* ptr)
{
  if(ptr->hour > 24) ptr->hour = 24;
  if(ptr->minute > 60) ptr->minute = 60;
  if(ptr->second > 60.0f) ptr->second = 60;
}

int  main(void)
{
  stime  t1, t2, t3;
  /* 時 分 秒で入力 */
  scanf("%d %d %f", &t1.hour, &t1.minute, &t1.second);
  scanf("%d %d %f", &t2.hour, &t2.minute, &t2.second);

  /* 安全装置 */
  safety(&t1);
  safety(&t2);
  

/* 続く */