Advertisement
Pearlfromsu

fsfdsfsd

Dec 3rd, 2022
635
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.86 KB | None | 0 0
  1. /******************************************************************************
  2.  
  3.                               Online C++ Compiler.
  4.                Code, Compile, Run and Debug C++ program online.
  5. Write your code in this editor and press "Run" button to compile and execute it.
  6.  
  7. *******************************************************************************/
  8.  
  9. #include <iostream>
  10. #include <set>
  11.  
  12. using namespace std;
  13.  
  14. int main()
  15. {
  16.    
  17.     int poryadok = 8;
  18.     cout << "poryadok " << poryadok << ": " << '\n';
  19.     for(int obr = 0; obr < poryadok; obr++) {
  20.         set<int> st;
  21.         for(int i = 0; i < 100000; i++) {
  22.             st.insert((obr*i)%poryadok);
  23.         }
  24.         cout << "obr " << obr << ": ";
  25.         for(auto i = st.begin(); i != st.end(); i++)
  26.             cout << *i << ' ';
  27.         cout << '\n';
  28.        
  29.     }
  30.  
  31.     return 0;
  32. }
  33.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement