SHARE
TWEET

EGE 27(2)

a guest Jun 25th, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. a=[]
  2. num1 = -1
  3. num2 = -1
  4. maxs = -1
  5. n = int(input())
  6. for i in range(0,n):
  7.     for j in range(0,n):
  8.         if ((a[i]+a[j])%106 == 0) and (a[i]+a[j]>maxs) and (i != j):
  9.             maxs=a[i] + a[j]
  10.             num1=a[i]
  11.             num2=a[j]
  12. print(num1, num2)
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