Advertisement
O_Egor

45

May 25th, 2022 (edited)
489
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include <vector>
  3. #include <cmath>
  4. #include <map>
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9.     for (int i = 333555; i < 777999 + 1; ++i)
  10.     {
  11.         vector <int> ans;
  12.         for (int j = 10; j < 100; ++j)
  13.         {
  14.             if (i % j == 0)
  15.             {
  16.                 ans.push_back(j);
  17.             }
  18.         }
  19.         if (ans.size() == 35)
  20.         {
  21.             cout << i << ' ' << ans[0] << ' ' << ans[ans.size() - 1] << '\n';
  22.         }
  23.     }
  24.     return 0;
  25. }
Advertisement
RAW Paste Data Copied
Advertisement