#include<bits/stdc++.h>
using namespace std;
int main(){
int m,h1,m1,h2,m2,sum=0;
cin>>m;
scanf("%d:%d",&h1,&m1);
scanf("%d:%d",&h2,&m2);
if(m1>m2) {h2--;m2=m2+60;sum = (h2-h1)*60 + m2-m1;}
else sum = (h2-h1)*60 + m2 - m1;
if(m%sum==0) cout<<m/sum;
else cout<<m/sum+1;
}
1312: 【入门】看完动漫要几天?
最新推荐文章于 2024-11-09 20:38:27 发布