fork(1) download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static int Main()
  6. {
  7. try {
  8. checked {
  9. return int.MaxValue + int.Parse(Console.ReadLine());
  10. }
  11. } catch(OverflowException) {
  12. Console.WriteLine("caught");
  13. }
  14. return 0;
  15. }
  16. }
Success #stdin #stdout 0.03s 33880KB
stdin
1
stdout
caught