Password Generator - [Programming Basics Exam 14-15 April 2018]
problem:
judge:
https://judge.softuni.bg/Contests/Practice/Index/978#15
Някой вижда ли къде бъркам?
using System;
namespace PasswordGenerator
{
class Program
{
static void Main(string[] args)
{
int a = int.Parse(Console.ReadLine());
char b = char.Parse(Console.ReadLine().ToUpper());
char c = char.Parse(Console.ReadLine().ToLower());
int d = int.Parse(Console.ReadLine());
int e = int.Parse(Console.ReadLine());
int f = int.Parse(Console.ReadLine());
int N = int.Parse(Console.ReadLine());
int count = 0;
bool position = true;
for (int i = 1; i <= a; i++)
{
for (char j = 'A'; j <= b; j++)
{
for (char k = 'a'; k <= c; k++)
{
for (int l = 1; l <= d; l++)
{
for (int m = 1; m <= e; e++)
{
for (int n = 1; n <= f; n++)
{
count++;
if (count == N)
{
position = false;
Console.Write($"{i}");
Console.Write($"{j}{k}");
Console.WriteLine($"{l}{m}{n}");
return;
}
}
}
}
}
}
}
if (position)
{
Console.WriteLine("No password on this position");
}
}
}
}