Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- ofstream fout{"bac.out"};
- int main(){
- unsigned int p1,p2,i,j;
- cin >> p1 >> p2;
- for(i = 1; i <= 9; ++i){
- if(p1%i == 0 && p1/i <= 9){
- for(j = 1; j<=9; ++j){
- if(p2%j == 0 && p2/j <= 9){
- fout<<i<<p1/i<<"000"<<p2/j<<j<<endl;
- }
- }
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement