SHARE
TWEET

Untitled

a guest Jul 17th, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def sum(a):
  2.     for i in range (1, 10):
  3.         if a//i == 1:
  4.             suma = i
  5.         elif a//i == 1 and a%i == 0:
  6.             suma = i          
  7.     return  suma%10+suma//10
  8.  
  9. def sum(b):
  10.     for i in range (1, 10):
  11.         if a//i == 1:
  12.             sumb = i
  13.         elif b//i == 1 and b%i == 0:
  14.             sumb = i
  15.             sumb%10+sumb//10
  16.     return sumb%10+sumb//10
  17.                    
  18. a = int(input())
  19. b = int(input())
  20. l = sum(a)
  21. m = sum(b)  
  22. if l> m:
  23.     print(l)
  24. else:
  25.     print(m)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top