B
A_yixiubro · · 个人记录
#include <iostream>
#include <set>
using namespace std;
int main(){
for (int i=10000;i<20000;i++){
set<int>s;
int j=i;
while (j){
s.insert(j%10);
j/=10;
}
j=i*5;
while (j){
s.insert(j%10);
j/=10;
}
if (s.size()==10)
cout<<i<<" "<<i*5<<endl;
}
return 0;
}