7 kyu
Help the farmer to count rabbits, chickens and cows
789 of 999andriyrom
Loading description...
Fundamentals
Algorithms
Mathematics
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.
program done but the random tests take too long to solve and return an error with exit code : 1
Execution Timed Out (12000 ms)
This means, that you have to optimize your code. Try to think of a way how you can make your code find the solution faster.
ooooooooh okay thank you mate
next time your raise an issue, please provide some more evidence, e.g. your code (with a spoiler flag and markdown block). also, come back to close your issue once you realized the mistake was yours and you solved the kata
C Translation (author inactive).
approved
Haskell translation
This should be tagged as a logic kata too
C# starter code contains:
Which causes an error:
"#" in C-Sharp marks the beginning of a preprocessor directive. "//" should be used instead for one line commenting.
Fixed.
Traceback (most recent call last): File "/workspace/default/tests.py", line 2, in from solution import get_animals_count ImportError: cannot import name 'get_animals_count' from 'solution' (/workspace/default/solution.py)
See https://docs.codewars.com/training/training-example#writing-a-solution
python new test framework is required. updated in this fork
'kay
This kata is a subject to deduplication process here: https://github.com/codewars/content-issues/issues/197.
Please join the discussion to help us identify duplicate kata and retire them.
Description should be language-agnostic
C#: method name should be
PascalCase
(Please refer to implementation of backward compatibility here )Approved
Thanks a lot!
You need to specify how many legs and horns each animal has.
Especially horns, since AFAIK unicorns have horns, but none of the animals are them.
My fault, done! Thank you! But actually some breeds of cows have horns proof
(raising an issue otherwise it is approvable)
Ok! I'll try to make some changes tomorrow.
I extended the kata with new condition. Check, please.
Sorry but this kata is duplicated: https://www.codewars.com/kata/heads-and-legs/train/python