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

Обсуждение задачи 1471. Расстояние в дереве

who can give me test case #5? I got crash and I cannot figure out the reason...
Послано Ludovic 19 окт 2006 13:25
got AC by writing an explicitly recursive DFS -_-!!!
Послано Ludovic 20 окт 2006 12:06
Re: who can give me test case #5? I got crash and I cannot figure out the reason...
Послано Christos Mantoulidis 24 дек 2006 16:06
Me too. Does anyone know what's so special about #5?
Re: who can give me test case #5? I got crash and I cannot figure out the reason...
Послано ConanKudo 15 июл 2008 10:14


Edited by author 15.07.2008 10:16
Re: who can give me test case #5? I got crash and I cannot figure out the reason...
Послано Vlad Trukhanovich 5 окт 2011 16:53
I had this problem.
You have to write
#pragma comment(linker, "/STACK:1000000000")
in your program, if you use C++
Re: who can give me test case #5? I got crash and I cannot figure out the reason...
Послано Vlad 28 ноя 2012 04:16
Indeed, I had the same problem but after I put this ( #pragma comment(linker, "/STACK:1000000000") ) it works.
Anyway, what does this do? Why does my program works if I write this?