Quizes
Problems
Courses
Sign
Register
Main
/
Courses
/
Basics of Python
/
INTEGER DIVISION AND REMAINDER
INTEGER DIVISION AND REMAINDER
№ 13
/20
Sum of squares of digits
Read Theory
Task
Time limit:
1000
ms,
Memory limit:
32 Mb
Write a program that finds the sum of the squares of the digits of a given number from the initial five-digit number
Example
N
Input
Output
1
12345
55
(1*1 + 2*2 + 3*3 + 4*4 + 5*5 = 55)
Auto
CHOOSE THE PROGRAMMING NECESSARY LANGUAGE!
Attach the program source file:
or enter the source code in the language:
C++
Python
FreePascal
PascalABC.Net
Kumir
Java
JavaScript
TypeScript
C#
F#
Swift
Rules for designing programs and a list of errors during automatic task verification
Results: