Advertisement
Matvey_Kozvonin

dz 12

Jan 21st, 2024
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. a=int(input())
  2. b=a
  3. x=b
  4. c=0
  5. z=0
  6. while a!=0:
  7. z+=1
  8. c=a
  9. a=int(input())
  10. x+=a
  11. B=(x/z)/2
  12. C=c+b
  13. print(C)
  14. if C>B:
  15. print('YES')
  16. else:
  17. print('NO')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement