IOM 2021, Блиц — Задача 31

The Blitz-contest of IOM-2021

Условие

Consider the following recursive function fun(x, y). What is the value of fun(47, 43)?

C code listing of the function int fun(int x, int y): if x == 1 it returns y; otherwise it returns y + fun(x - 1, y).

Отговори

Решение


Оригинал в Архива: iom-2021-blitz-tasks-eng.pdf · официални решения: iom-2021-blitz-answers-eng.pdf