Colas_miao_ @ 2023-05-17 20:45:33
#include<bits/stdc++.h>
#define int long long
#define itn int
#define FOR(i,l,r) for(int i=(l);i<=(r);++i)
using namespace std;
int fx[110]={31,29,31,30,31,30,31,31,30,31,30,31};
signed main()
{
int ans=0;
int a,b;
cin>>a>>b;
FOR(i,1,12)
FOR(j,1,fx[i])
{
int c=(j%10)*1000+(j/10)*100+(i%10)*10+(i/10);
itn s=c*10000+i*100+j;
if(s<a||s>b) continue;
ans++;
}
cout<<ans;
return 0;
}
70分。。。
by da_ke @ 2023-05-17 20:48:28
@I_is_Chen_Yang 这道题数据很强,比所以oj都强,我试过的,再别的ojAC,洛谷会unac100pts
by Colas_miao_ @ 2023-05-17 20:50:15
。。。好吧6
by OldDriverTree @ 2023-06-13 18:39:19
@I_is_Chen_Yang 没过就不用加强