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

Обсуждение задачи 1638. Книжный червь

Sample test
Послано A.Z 11 окт 2008 13:26
Why output is 2 , I think it should be 22 , because the worm started from the first sheet of vol 1 and goes until last sheet of vol 2 . so it's path is 10+1+1+10 = 22
Re: Sample test
Послано Aisenshtein Daniil 11 окт 2008 14:23
No comments
Re: Sample test
Послано qwe (Dmitry) 11 окт 2008 15:53
if "NO COMMENTS" why you write this?
information - Zero
Re: Sample test
Послано Aisenshtein Daniil 11 окт 2008 15:57
You should know, that answer "No comments" is identical to "Read the problem statement"
Re: Sample test
Послано Madi 21 дек 2008 11:52
You could have written explanation or something instead of writing no comments. Its like making fun of the guy, like jewish do.
Re: Sample test
Послано Hadi Moshayedi 23 дек 2008 19:05
Try to put two books in a bookshelf, and see the reason for no comments :D
Re: Sample test
Послано Zharenkov_ssau 20 янв 2009 00:23
what answer will be for test like this:
10 1 3 1
zero?
Re: Sample test
Послано Smith 20 янв 2009 01:14
>what answer will be for test like this:
>10 1 3 1

Answer is 34.
Re: Sample test
Послано Dzs 17 мар 2009 10:30
No
for the case 10 1 3 1

Answer is 12
Re: Sample test
Послано Mak✭kbtu 16 май 2010 21:59
You seem to be an anti-Semite! Jewish are not guilty of your stupidity
TO ADMINS
Послано Armen Tsirunyan 5 авг 2011 00:40
Are there no moderators here? Hateful comments should be instantly removed and the idiots who post them should be temporarily or permanently banned!

Think of the reputation of this otherwise great site!
Re: Sample test
Послано Kestutis 31 авг 2011 14:30
Dzs писал(a) 17 марта 2009 10:30
No
for the case 10 1 3 1

Answer is 12
No. You are wrong. My ACed solusion also gave 34. Even if you solve it by hand it is the same result.
Because books are [from first ][][ to last]
There are 4 symbols of [ and ] that are book covers.
So, three books and 4 covers of the books that worm had gnawed.
Re: Sample test
Послано Muhammad As-Sawalhy 11 июл 2022 16:18
Ok, the problem statement doesn't clarify that this book is an LTR language (left to right, e.g. English) book.Shuch a crucial info shouldn't be left to the assumptions of the reader.