Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
165
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from math import sqrt
  2. data = list(map(int, input().split()))
  3.  
  4. sqrt_list = []
  5.  
  6. for i in data:
  7.     if sqrt(i) == int(sqrt(i)):
  8.         sqrt_list.append(i)
  9.  
  10. sqrt_list = sorted(*[sqrt_list], reverse=True)
  11. print(*sqrt_list)
Advertisement
RAW Paste Data Copied
Advertisement