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

Обсуждение задачи 1803. Винтовки белочехов

Ibragim Atadjanov (Tashkent U of IT) TL11 [5] // Задача 1803. Винтовки белочехов 7 ноя 2010 07:04


Edited by author 11.11.2010 07:28
Moonstone [Samara SAU] Re: TL11 [4] // Задача 1803. Винтовки белочехов 7 ноя 2010 13:28
Of course, it's slow! BigIntegers are not allowed in this problem!

And replace your precalculations by while cycle and in k-based numeral system!

Edited by author 07.11.2010 13:42
Ibragim Atadjanov (Tashkent U of IT) still got tl11 [1] // Задача 1803. Винтовки белочехов 8 ноя 2010 21:04


Edited by author 11.11.2010 07:28
Ibragim Atadjanov (Tashkent U of IT) Re: still got tl11 // Задача 1803. Винтовки белочехов 11 ноя 2010 07:24
AC dont use ArrayList for adding two big numbers just used array (in java)
Ibragim Atadjanov (Tashkent U of IT) Re: TL11 [1] // Задача 1803. Винтовки белочехов 11 ноя 2010 07:29
thanks
Kolyanich Re: TL11 // Задача 1803. Винтовки белочехов 15 фев 2011 04:52
If you have TLE#11 consider to use not "one byte per one digit" representation, but rather one 16/32 bit int per group of digits. Another hint: when you sum all digits in your next fibonacci number and use 16-24 bits per group approach, you can precalculate sum of digits in every possible of such groups before the main loop.