Input: n = 2
Output: -3
Explanation:
sum = 12 - 22
= 1 - 4
= -3
Input: n = 3
Output: 6
sum = 12 - 22 + 32
= 1 - 4 + 9
= 6
Объяснение:
Input: n = 2
Output: -3
Explanation:
sum = 12 - 22
= 1 - 4
= -3
Input: n = 3
Output: 6
Explanation:
sum = 12 - 22 + 32
= 1 - 4 + 9
= 6
Объяснение: