fork download
  1. using System;
  2. using System.Text;
  3.  
  4. namespace ascii
  5. {
  6. class Program
  7. {
  8. public static void Main(string[] args)
  9. {
  10. for (int i = 0; i < 2; i++) {
  11. {
  12. }
  13. string tekst = Console.ReadLine();
  14.  
  15. if(tekst.Length>200)
  16. {
  17. break;
  18. }
  19.  
  20. {
  21. byte[] x = ASCIIEncoding.ASCII.GetBytes(tekst);
  22.  
  23. foreach (var y in x) {
  24.  
  25. if((char)y != ' ')
  26. {
  27. Console.Write("{0}", (char)(y+3));
  28. }
  29. else
  30. {
  31. Console.Write("{0}", (char)y);
  32. }
  33. }
  34. Console.WriteLine();
  35. }
  36. }
  37. }
  38. }
  39. }
Runtime error #stdin #stdout #stderr 0.03s 22328KB
stdin
Z
stdout
]
stderr
Unhandled Exception:
System.NullReferenceException: Object reference not set to an instance of an object
  at ascii.Program.Main (System.String[] args) [0x0000d] in <da38a647aada463abbfec211645b97ef>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object
  at ascii.Program.Main (System.String[] args) [0x0000d] in <da38a647aada463abbfec211645b97ef>:0