One Line Elf, Two Line Elves, Three Line Elves...

I have a number of slave elves. They all either have Knobbly Knees, Baseball Eyes, Pointy Ears or a Wart on the nose. One day, Victor comes into my slave elf lab. He wants to help me classify the elves. Each elf can have at most 3 features, but a special type of elf called the "One Line Elf" has all four features. After some counting, Victor finds 20 elves with Baseball Eyes, 24 With Pointy Ears, 10 With A wart on the nose and 5 with knobbly knees. How many elves are there, including the "One Line Elves"? (Look for the minimal number)

P.S. (I wrote this to practise for my compo)


The answer is 24.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

Ivan Koswara
Mar 1, 2014

Clearly we need at least 24 24 elves, considering that there are 24 24 with the feature pointy ears. Now we can easily create a 24 24 -elf configuration by greedily taking as many features as possible to each elf. This gives 5 5 One Line Elf, 5 5 elves with all but knobbly knees features, 10 10 elves with baseball eyes and pointy ears, and 4 4 elves with only pointy ears, which is a valid configuration. Thus the answer is 24 \boxed{24} .

Samuel Squigi
Feb 25, 2014

Basically, this is a trick question. There, at least, will be 5 One Line Elves, with all four features. Now the remaining elves will be just 19, with all three /two. just one feature.

I find that I can make a configuration without One Line Elves at all.

Ivan Koswara - 7 years, 3 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...