DialOG_

Untitled

Jan 24th, 2021
763
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. with open('6task.txt','r') as f:
  2.     lines = f.read().split('\n')
  3. u4 = int(lines[0].split()[0])
  4. win = int(lines[0].split()[1])
  5. priz = int(lines[0].split()[2])
  6.  
  7.  
  8. del lines[0]
  9. del lines[-1]
  10. nums = []
  11. for i in lines:
  12.     nums.append(int(i))
  13. nums.sort()
  14. minwin = u4 - win
  15. minpriz = minwin - priz
  16. print(nums[minpriz],nums[minwin])
RAW Paste Data