Commit 2076d4a7 by BellCodeEditor

save project

parent 241b8c31
Showing with 13 additions and 0 deletions
a=input()
b=input().split(',')
e=[]
r=[]
for i in range(len(b)):
if int(b[i])%2==0:
e.append(b[i])
if len(e)==0:
print(-1)
for j in range(len(e)):
r.append(str(int(e[j])*int(e[j])))
print(','.join(r)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment