Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Text;
- class Justyfikator
- {
- public static void Main()
- {
- long dwym = Convert.ToInt64(Console.ReadLine());
- string wejscie = Console.ReadLine();
- long liczPrzeb = dwym + 2 - wejscie.Length;
- int numerIndeksu = 3;
- StringBuilder strB = new StringBuilder(wejscie);
- for (long przebOdby = 0; przebOdby < liczPrzeb; )
- {
- strB.Insert(numerIndeksu, " ");
- numerIndeksu = numerIndeksu + 2;
- przebOdby++;
- }
- Console.WriteLine(strB.ToString() + "\n");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment