ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1638. Bookworm

Sample test
Posted by A.Z 11 Oct 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
Posted by Aisenshtein Daniil 11 Oct 2008 14:23
No comments
Re: Sample test
Posted by qwe (Dmitry) 11 Oct 2008 15:53
if "NO COMMENTS" why you write this?
information - Zero
Re: Sample test
Posted by Aisenshtein Daniil 11 Oct 2008 15:57
You should know, that answer "No comments" is identical to "Read the problem statement"
Re: Sample test
Posted by Madi 21 Dec 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
Posted by Hadi Moshayedi 23 Dec 2008 19:05
Try to put two books in a bookshelf, and see the reason for no comments :D
Re: Sample test
Posted by Zharenkov_ssau 20 Jan 2009 00:23
what answer will be for test like this:
10 1 3 1
zero?
Re: Sample test
Posted by Smith 20 Jan 2009 01:14
>what answer will be for test like this:
>10 1 3 1

Answer is 34.
Re: Sample test
Posted by Dzs 17 Mar 2009 10:30
No
for the case 10 1 3 1

Answer is 12
Re: Sample test
Posted by Mak✭kbtu 16 May 2010 21:59
You seem to be an anti-Semite! Jewish are not guilty of your stupidity
TO ADMINS
Posted by Armen Tsirunyan 5 Aug 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
Posted by Kestutis 31 Aug 2011 14:30
Dzs wrote 17 March 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
Posted by Muhammad As-Sawalhy 11 Jul 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.