Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- t = int(input())
- while (t != 0):
- n = int(input())
- print(int((n*(n-3))/2))
- t -= 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement