v 0. Pasted by Anonymous as python at 2010-12-15 00:28:55 MSK and set expiration to never.

Paste will expire never.

  1. A = "333336"
  2. B = "222555"
  3. C = "144444"
  4.  
  5. def cmp(X, Y):
  6.     xwin, ywin = 0, 0
  7.     xs = map(int, globals()[X])
  8.     ys = map(int, globals()[Y])
  9.    
  10.     for xx in xs:
  11.         for xx2 in xs:
  12.             for yy in ys:
  13.                 for yy2 in ys:
  14.                     #xx2 = 0
  15.                     #yy2 = 0
  16.                     xwin += xx+xx2 > yy+yy2
  17.                     ywin += yy+yy2 > xx+xx2
  18.                    
  19.     if xwin > ywin:
  20.         print X, '>', Y
  21.     elif xwin < ywin:
  22.         print Y, '>', X
  23.     else:
  24.         print Y, '=', X
  25.    
  26. cmp('A', 'B')
  27. cmp('B', 'C')
  28. cmp('C', 'A')


Editing is locked.