fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5.  
  6. public static Int32 GetHashCode(Int32 x, Int32 y)
  7. {
  8. return ((23 * 37) + x) * 37 + y;
  9. }
  10.  
  11. public static void Main()
  12. {
  13. Console.WriteLine(GetHashCode(1,2));
  14. Console.WriteLine(GetHashCode(2,4));
  15.  
  16.  
  17. }
  18. }
Success #stdin #stdout 0.03s 33864KB
stdin
null
stdout
31526
31565