Retired
Vasya and Plates (retired)
85 of 283AlexIsHappy
Loading description...
Puzzles
Algorithms
Logic
Mathematics
Numbers
Fundamentals
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
I didnt like the description even I got the solution
Please use new python test framework.
C Translation kumited (with random tests). Author is inactive, thanks.
Kata retired.
No random tests.
The following expected value is wrong b=3, p=1, dishes:1/1/2/2/2/2 FAILED:: Expected: 2 But was: 1
No, it is correct.
Who is Valera?
"then on day i Valera will eat a first type dish" should be "then on that day, Vasya will eat the first type of dish".
Good hint! I fixed this.
Now the issue can be closed and the kata can be approved.
the wording of the question, seems to written by a non-native english speaker
This comment has been hidden.
Coffee translation kumited.
Python translation kumited. Did you see my Ruby translation of Vasya and system of equations?
Approved both :) Thanks!
Ruby translation kumited from holidays:-)
Thanks! Great work!
Did you see my translation to Ruby of Vasya and system of equations?
should say that vasya only washes one bowl/plate at a time
for test case 11 you have 3 bowls 1 plate and the order is 112222 day one you use 1 bowl: you will have 2 bowls and 1 plate left day 2 you use 1 bowl: you will have 1 bowl and 1 plate left day 3 use plate: 1 bowl 0 plate left day 4 use bowl: o bowl o plate wash : 3 bowl 1 plate day 5 use plate: 3 bowl 0 plate day 6 use bowl: 2 bowl 0 plate you only need to wash once but the test case says it needs 2. Is there an error with test case11 or am i doing it wrong??
Vasya is so lazy, he washes only one bowl/plate a day (in this case he washes a plate on 5th day and then again on 6th day)
May be Description should be more explicit.
lol yea thankyou
Which language please? I think you are doing it wrong:-(
I think issue can be considered as resolved, isnt it ?
Good advice, ZozoFouchtra. Thanx!
Nice Kata I thought it would be easier than it was.
Good kata but
Thanks for the feedback! :) Nope,this month I am just a little overwhelmed at the University :)
I will take a look at the translation right now :) Hopefully, I will create couple of more katas this week. (Actually, today C# started being supported. Import day I suppose :)
I dont see any traslations for the "Vasya and System of Equations" kata :(
They are planned but not done yet. I was waiting for your yes or no at my proposition of translations all the more than I'm on holidays and not at home:-)
No more problem with this dishes kata :-) I marked it ready.
Niiice :) Thanks :)
Beautiful time - hollidays ...
Ok, if you prepare any translations, let me know , I will check it out :)
Honestly, I couldn't make head nor tails of the description. I don't understand what the inputs are, how you know if he will be eating from a bowl or a plate each day, how to calculate the washing up... No clue.
Description is rather short but b is number of clean bowls, p same for plates; dishes is an array of ints that says if he eats dish n° 1 or dish n° 2. For dish n° 1 he needs a clean bowl, for dish n° 2 he can use a clean bowl or a clean plate. He eats only once per day and he needs clean things for eating. One asks how many times he must wash a bowl or a plate to eat all planned dishes. Rather easy:-) Hope this help!
What about further dishes.
(Still a pretty confusing premise, honestly.)
What do you mean? (yes, could be better explained with a detailed example).
I changed the description a little. Added 'input' section. Hopefully its more clear now :)
Let me know if you are not satisfied