Run ID:85727
提交时间:2024-07-20 09:17:10
t = int(input()) for i in range(t): n = int(input()) dst = 0 speed = 1 for j in range(n): dst+=speed speed+=2 print(dst)