IOM 2016, Блиц — Задача 26

Olympiad of Metropolises, Moscow. Blitz Contest, September, 5 · 5 септември 2016 г.

Условие

Two-column table with the same program in Pascal (left) and C (right): read integer n; set k to 1; while k*k is less than or equal to n, increase k by 1; print k. The C column includes stdio.h, reads n with scanf and prints k with printf, then returns 0 from main.

What is the output of this program if the input is 2016?

Решение

Внимание: Непълно решение

В архива няма официално решение на тази задача.


Оригинал в Архива: blitz.pdf