Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace _06StupidPasswordGenerator_6March2016
- {
- class Program
- {
- static void Main()
- {
- int n = int.Parse(Console.ReadLine());
- int l = int.Parse(Console.ReadLine());
- for (int i1 = 1; i1 < n; i1++)
- {
- for (int i2 = 1; i2 < n; i2++)
- {
- for (char i3 = 'a'; i3 < 'a'+l; i3++)
- {
- for (char i4 = 'a'; i4 <'a'+l; i4++)
- {
- for (int i5 = 1+1; i5 <= n; i5++) // i5=Math.Max(d1, d2)+1 !!!
- {
- if (i1>=i5 || i2>=i5) // и тогава без това!!!
- continue;
- Console.Write($"{i1}{i2}{i3}{i4}{i5} ");
- }
- }
- }
- }
- }
- Console.WriteLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement