ENG  RUSTimus Online Judge
Online Judge
Задачи
Авторы
Соревнования
О системе
Часто задаваемые вопросы
Новости сайта
Форум
Ссылки
Архив задач
Отправить на проверку
Состояние проверки
Руководство
Регистрация
Исправить данные
Рейтинг авторов
Текущее соревнование
Расписание
Прошедшие соревнования
Правила
вернуться в форум

Обсуждение задачи 1088. Илья Муромец

Roman Lipovsky Can somebody give me full explanation of this problem? [5] // Задача 1088. Илья Муромец 25 окт 2004 21:15
Can somebody give me full explanation of this problem?
Thanks.
Michael Rybak (accepted@ukr.net) I barely believe anyone can. Ask questions (-) [3] // Задача 1088. Илья Муромец 26 окт 2004 17:00
Roman Lipovsky Re: I barely believe anyone can. Ask questions (-) [2] // Задача 1088. Илья Муромец 26 окт 2004 17:09
Full binary tree.
Ilya is on the deep D, magis stone is on deep E.
But what mean numbers Dp and Ep?
You know the deepness of each by D and E, but this isn't enough to know, which exactly nodes are considered. So, in this problem the nodes are specified by 2 parameters: deepness, and a number of some leaf of it's subtree. Obviously, there can be many different pairs describing the same node. In this problem, only leafs are enumerated (see problem statement).

Edited by author 26.10.2004 18:35

Edited by author 26.10.2004 19:32
Full Binary Tree with depth: F

Stone is at depth: F-D from root and a tree rooted at the stone holds leaf #Dp

Ilya is at depth: F-E from root and a tree rooted at the Ilya's position holds leaf #Ep

find whether the distance of the two nodes is <= H