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

Обсуждение задачи 1564. Этажи

Серовиков Андрей WA10 [7] // Задача 1564. Этажи 13 окт 2007 14:53
What's wrong, if the second test is 10^18?
caoqinxiang Re: WA10 [5] // Задача 1564. Этажи 25 окт 2007 18:27
the ones of 1 to 10^18 have over the range of int64
Piratek-(akaDK) Re: WA10 [4] // Задача 1564. Этажи 16 мар 2008 18:14
The number of ones is less than number of floor. For me tha answer must be in Int64
Vedernikoff Sergey Re: WA10 [3] // Задача 1564. Этажи 17 мар 2008 22:03
The answer is within Int64. So, try to find bug in your code or algorithm...
Chmel_Tolstiy Re: WA10 [2] // Задача 1564. Этажи 18 мар 2008 19:44
if you use line like this at TIMUS will a bug ...

long long INF = 1e18;

you should use

long long INF = 1e9;
INF *= INF;
Denis Koshman Re: WA10 // Задача 1564. Этажи 5 авг 2008 06:23
Use unsigned __int64, might help. Also, if you use binary search, make sure that left+right does not overflow prior to /2 or >>1.
Oksana (TNU) Re: WA10 // Задача 1564. Этажи 19 янв 2009 20:59
Chmel_Tolstiy писал(a) 18 марта 2008 19:44
if you use line like this at TIMUS will a bug ...

long long INF = 1e18;

you should use

long long INF = 1e9;
INF *= INF;

Thank you!
alp Re: WA10 // Задача 1564. Этажи 23 фев 2011 21:32
Try this test
12
Answer 19 (not 20)