Advertisement
Thrashans

El concierto de Gustavo Leytón

Aug 27th, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.09 KB | None | 0 0
  1. for _ in range(int(input())):
  2.     i = int(input())
  3.     print(i**2+1 if i % 2 == 0 else i**2-1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement