Skip to content
Onsite

Sum of Squares of Three Numbers

EasyP3Coding

Return a^2 + b^2 + c^2.

Example 1

Input
a = 1, b = 2, c = 3
Output
14

Example 2

Input
a = 0, b = 0, c = 0
Output
0

Example 3

Input
a = -1, b = -2, c = -3
Output
14

Constraints

  • -10^5 <= a, b, c <= 10^5

Hints

Run checks the 3 visible tests, Submit all 8.