Advertisement
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 ConsoleApplication6
- {
- class Program
- {
- static void Main(string[] args)
- {
- string array_word_and_numeral = "qwertyuiopasdfghjklzxcvbnm1234567890йцукенгшщзхъфывапролджэячсмитьбюё";
- string array = Console.ReadLine();
- if (array.Length == 29)
- {
- int a = 0;
- int b = 0;
- int i = 0;
- int n = 0;
- for (int j = 0; j < 5; j++)
- {
- for (; i < 5 + n; i++)
- {
- char[] chr = { array[i] };
- string text = new string(chr);
- if (array_word_and_numeral.Contains(text) == false)
- {
- a++;
- }
- }
- if (a == 0)
- {
- n = n + 6;
- i++;
- }
- else if (a != 0)
- {
- j = 5;
- }
- }
- if (a == 0)
- {
- for (int k = 5; k < array.Length; k = k + 6)
- {
- char[] chr = { array[k] };
- string text = new string(chr);
- if (text != "-")
- {
- b++;
- }
- }
- }
- if (a != 0 || b != 0)
- {
- Console.WriteLine("False");
- }
- else if (a == 0 & a == 0)
- {
- Console.WriteLine("True");
- }
- }
- else
- {
- Console.WriteLine("False");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement