fork download
  1. using System;
  2. using System.Collections;
  3.  
  4. public class GetSortRange
  5. {
  6. public static void Main()
  7. {
  8. string line;
  9.  
  10. ArrayList al = new ArrayList();
  11. do {
  12. line = Console.ReadLine();
  13. if (line != null)
  14. {
  15. if (line.Trim() != "")
  16. {
  17. try
  18. {
  19. int i = Convert.ToInt32(line);
  20. al.Add(i);
  21. }
  22. catch
  23. {
  24. ;
  25. }
  26.  
  27. }
  28. }
  29. } while (line != null);
  30.  
  31. Console.WriteLine("1..100");
  32. }
  33. }
  34.  
Success #stdin #stdout 0.05s 23992KB
stdin
using System;
using System.Collections;

public class GetSortRange
{
   public static void Main()
   {
      string line;

      ArrayList al = new ArrayList();
      do { 
         line = Console.ReadLine();
         if (line != null) 
		 {
             if (line.Trim() != "")
             {
                 try
                 {
                     int i = Convert.ToInt32(line);
                     al.Add(i);
                 }
                 catch
                 {
                     ;
                 }

             }
         }
      } while (line != null);

      Console.WriteLine("1..100");
   }
}
stdout
1..100