АВТ
Language:

Remote Training on Programming

Problems On-line status Contests FAQ
For authors:
Register  ||  Login
 
Hello, Guest! Login or register.

958. А78(д)

Time Limit: 1 seconds
Memory Limit:65536KB
Points:2
View Problem Statistics Submit Problem added Undefined

Даны действительное число а и натуральное число n(до 1000).Вычислить:

a*(a-n)*(a-2*n)...(a-n*n)

Input

два числа а и n, разделенные пробелами и/или переводами строк

Output

Одно число - ответ, с точностью до 0.01

Sample

InputOutput
Пример 1. Вход:
2 1
Пример 1. Выход:
2

View Problem Statistics Submit Author/source:
Educational Courses / New problems in testing /
987. А119(В) 958. 1054. Арифметическое вычисление 1040. Бесконечная сумма 1095. Вычисление суммы.
We can all benefit by doing occasional "toy" programs, when artificial restrictions are set up, so that we are forced to push our abilities to the limit. The art of tackling miniproblems with all our energy will sharpen our talents for the real problems. Donald E. Knuth.
time generating 0.936 sec.
© Copyright VSTU, AVT, Nosov D.A.