牛客小白月赛21 C
程序员文章站
2022-06-08 18:40:11
...
AC代码
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <iostream>
#include <algorithm>
using namespace std;
int main()
{
long long a,b;
while(cin>>a>>b)
{
long long ans1,ans2;
a=a-1;
ans1=a/60*50;
a=a%60;
if(a>=50)a=50;
ans1=ans1+a;
ans2=b/60*50;
b=b%60;
if(b>=50)b=50;
ans2=ans2+b;
cout<<ans2-ans1<<endl;
}
return 0;
}
推荐阅读