fork(2) download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. int n = Int32.Parse(Console.ReadLine());
  8. String s = "".PadLeft(n, 'X');
  9. Console.WriteLine(s.Replace("X", s).Length);
  10. }
  11. }
Success #stdin #stdout 0.03s 34712KB
stdin
12
stdout
144