Guest User

Untitled

a guest
Oct 21st, 2014
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. using System;
  2. using System.Text;
  3.  
  4. class Justyfikator
  5. {
  6. public static void Main()
  7. {
  8. long dwym = Convert.ToInt64(Console.ReadLine());
  9. string wejscie = Console.ReadLine();
  10.  
  11. long liczPrzeb = dwym + 2 - wejscie.Length;
  12. int numerIndeksu = 3;
  13.  
  14. StringBuilder strB = new StringBuilder(wejscie);
  15.  
  16. for (long przebOdby = 0; przebOdby < liczPrzeb; )
  17. {
  18. strB.Insert(numerIndeksu, " ");
  19. numerIndeksu = numerIndeksu + 2;
  20. przebOdby++;
  21. }
  22.  
  23. Console.WriteLine(strB.ToString() + "\n");
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment