Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // StupidPasswordGenerator.cpp : Defines the entry point for the console application.
- //
- #include "stdafx.h"
- #include <iostream>
- #include <string>
- #include <algorithm>
- using namespace std;
- int main()
- {
- int n, l;
- cin >> n >> l;
- for (int i = 1; i <= n; i++)
- {
- for (int k = 1; k <= n; k++)
- {
- for (char j = 'a'; j <= l ; j++)
- {
- for (char g = 'a'; g <= l; g++)
- {
- for (int h = max(i, k) + 1; h <= n; h++)
- {
- cout << i << k << j << g << h << " ";
- }
- }
- }
- }
- }
- cout << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement