SHARE
TWEET

Untitled

a guest Jun 25th, 2019 77 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)
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