SHARE
TWEET

Untitled

a guest Jun 25th, 2019 78 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. data = [i for i in data if sqrt(i) == int(sqrt(i))]
  5.  
  6. data.sort(reverse=True)
  7. print(*data)
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