#include <cstring>
#include <algorithm>
using namespace std;
int main()
{
int a[10] = {2021, 2021, 2021, 2021, 2021, 2021, 2021, 2021, 2021, 2021};
int res = 0, i = 1;
while(true)
{
bool flag = true;
int temp = i;
while(temp)
{
if(a[temp%10] == 0)
{
flag = false;
break;
}
a[temp % 10]--;
temp /= 10;
}
if(flag)
{
res++;
i++;
}
else
{
break;
}
}
cout << res;
return 0;
}
0 回复
0 转发
0 喜欢
2 阅读



