fork(1) download
  1. using System;
  2. using System.Globalization;
  3. using System.Linq;
  4. using System.Collections.Generic;
  5.  
  6. public class Test
  7. {
  8.  
  9. public static void Main()
  10. {
  11. string data = "the stock overflow in very good website";
  12. IEnumerable<string> tokens = data.Split()
  13. .Select(w => string.Format("{0}...{1}", w
  14. , string.Join("...", w.Select(c => string.Format("{0}...", c)).ToArray())));
  15. string result = string.Join(" ", tokens.ToArray());
  16. Console.Write(result);
  17. }
  18. }
Success #stdin #stdout 0.03s 33888KB
stdin
Standard input is empty
stdout
the...t......h......e... stock...s......t......o......c......k... overflow...o......v......e......r......f......l......o......w... in...i......n... very...v......e......r......y... good...g......o......o......d... website...w......e......b......s......i......t......e...