提交时间:2025-11-14 19:04:53

运行 ID: 360866

#include<iostream> #include<cmath> using namespace std; int main(){ int m,a,b,c,d,s; cin>>m; scanf("%d:%d",&a,&b); scanf("%d:%d",&c,&d); s=(c-a)*60+d-b; cout<<floor(m/s); return 0; }