Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /******************************************************************************
- Online C++ Compiler.
- Code, Compile, Run and Debug C++ program online.
- Write your code in this editor and press "Run" button to compile and execute it.
- *******************************************************************************/
- #include <iostream>
- #include <set>
- using namespace std;
- int main()
- {
- int poryadok = 8;
- cout << "poryadok " << poryadok << ": " << '\n';
- for(int obr = 0; obr < poryadok; obr++) {
- set<int> st;
- for(int i = 0; i < 100000; i++) {
- st.insert((obr*i)%poryadok);
- }
- cout << "obr " << obr << ": ";
- for(auto i = st.begin(); i != st.end(); i++)
- cout << *i << ' ';
- cout << '\n';
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement