Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace StupidPasswordGenerator
- {
- class Program
- {
- static void Main(string[] args)
- {
- var n = int.Parse(Console.ReadLine());
- var l = int.Parse(Console.ReadLine());
- for(int i = 1; i < n; i++)
- {
- for(int j = 1; j < n; j++)
- {
- for(int k = 97; k < 97 + l; k++)
- {
- for(int m = 97; m < 97 + l; m++)
- {
- for(int o = Math.Max(i , j) + 1; o <= n; o++)
- {
- Console.Write("{0}{1}{2}{3}{4} " , i , j , (char)k , (char)m , o);
- //Console.Write(i.ToString() + j + (char)k + (char)m + o + " ");
- }
- }
- }
- }
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment