Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
360867 丁虞轩 【C5-7】看完动漫要几天? C++ 通过 100 1 MS 252 KB 233 2025-11-14 19:07:19

Tests(1/1):


#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; if(m%s==0)cout<<m/s; else if(m%s!=0)cout<<m/s+1; return 0; }


测评信息: