fork download
  1.  
  2. using System;
  3. using System.Numerics;
  4.  
  5. namespace ProblemSolvingTesting
  6. {
  7. class DCP46
  8. {
  9.  
  10.  
  11. static void Main(string[] args)
  12. {
  13. long t = long.Parse(Console.ReadLine());
  14. for (int tcs = 0; tcs < t; tcs++)
  15. {
  16.  
  17. var line = Console.ReadLine().Split(' ');
  18.  
  19. BigInteger a = BigInteger.Parse(line[0]);
  20. BigInteger b = BigInteger.Parse(line[1]);
  21.  
  22. Console.WriteLine(BigInteger.Divide(BigInteger.Add(a,b), 2));
  23.  
  24. }
  25.  
  26. }
  27. }
  28. }
Runtime error #stdin #stdout #stderr 0.02s 16452KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Unhandled Exception:
System.ArgumentNullException: Value cannot be null.
Parameter name: s
  at System.Int64.Parse (System.String s) [0x00003] in <6649516e5b3542319fb262b421af0adb>:0 
  at ProblemSolvingTesting.DCP46.Main (System.String[] args) [0x00005] in <a4e70d886914410aa154e277aa44d348>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.ArgumentNullException: Value cannot be null.
Parameter name: s
  at System.Int64.Parse (System.String s) [0x00003] in <6649516e5b3542319fb262b421af0adb>:0 
  at ProblemSolvingTesting.DCP46.Main (System.String[] args) [0x00005] in <a4e70d886914410aa154e277aa44d348>:0