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

Обсуждение задачи 1393. Average Common Prefix

... Rounding [3] // Задача 1393. Average Common Prefix 29 авг 2007 22:50
The statement says "The only line of the output should contain the Average LCP of T with 3 digits after decimal point. "
Is this with rounding or without? I'm using printf("%0.3lf") and keep on getting WA 35
Al.Cash Re: Rounding [2] // Задача 1393. Average Common Prefix 22 окт 2010 23:18
Can somebody tell what's the reason of WA 35?
I think it's not rounding.
Vedernikoff Sergey (HSE: АОП) Re: Rounding [1] // Задача 1393. Average Common Prefix 22 окт 2010 23:33
Do you use long long to count total length of common prefixes? Try a test like AAA...AAA (250000 times)
Al.Cash Re: Rounding // Задача 1393. Average Common Prefix 22 окт 2010 23:52
I've tried both long long and double. There's no problem with such test.