#include <bits/stdc++.h>//学会了++j和j++注意11这个奇葩
using namespace std;
int cnt[10];//对每个位数上的数进行存储
bool check(int x){
while(x){//while(x)
int t=x%10;
cnt[t]--;
if(cnt[t]<0) return false;
x/=10;
}
return true;
}
int main(){
for(int i=0;i<=9;i++) cnt[i]=2021;
int j=1;
while(1){
if(check(j)) ++j;//遍历每一个数看是否符合,代替了找规律的不便
else break;
}
cout<<j<<endl;
}
#include<iostream>
#include<algorithm>
using namespace std;
typedef long long LL;
LL yue[101000],cnt;
int main()
{
LL n=2021041820210418;
for(LL i=1;i<=n/i;i++){
if(n%i==0){
yue[++cnt]=i;
if(i*i!=n)
yue[++cnt]=n/i;
}
}
int ans=0;
for(int i=1;i<=cnt;i++){
for(int j=1;j<=cnt;j++){
if(n%(yue[i]*yue[j])==0)
ans++;
}
}
cout<<ans;
return 0;
}