1 solutions
-
0
C++ :
#include<iostream> using namespace std; bool find(int x) //判断是否满足条件 { while (x) { int t=x%10; if (t>=2) return false; x/=10; } return true; } int main() { int n,m; cin>>n; for (m=1; m*n<=2000000000; m++) if (find(m*n)) break; if (m*n>2000000000) cout<<"No found\n"; else cout<<m<<endl; return 0; }
- 1
Information
- ID
- 17811
- Time
- 1000ms
- Memory
- 128MiB
- Difficulty
- (None)
- Tags
- # Submissions
- 0
- Accepted
- 0
- Uploaded By