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 test
- {
- class Program
- {
- static void Main(string[] args)
- {
- int n = int.Parse(Console.ReadLine());
- int I = int.Parse(Console.ReadLine());
- for (int s1 = 1; s1 < n; s1++)
- {
- for (int s2= 1; s2 < n; s2++)
- {
- for (var s3 = 'a'; s3 < 'a'+I; s3++)
- {
- for (var s4 = 'a'; s4 <'a'+ I; s4 ++)
- {
- for (int s5 = Math.Max(s1, s2)+1; s5 < n; s5++)
- {
- Console.Write("{0}{1}{2}{3}{4} ",
- s1, s2, s3, s4, s5);
- }
- Console.WriteLine();
- }
- }
- }
- }
- Console.ReadLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment