C# – Basic Exam – Wine Glass

As mentioned in the previous two articles, here (Biggest Triple) and here (Fruit Market) I have participated in one competition for C# basic programmers. So, in this article I will present the 3rd exam problem, which I have managed to solve really quick – for about 17 minutes I have managed to obtain 100 points on it! Quite satisfactory time, including the fact, that I needed about 7 minutes to read the problem and some technical time to type it! 🙂



Pretty much, that is probably because the previous two weeks I have managed to solve some similar C# problems, concerning console painting and there was nothing that could have amazed me. Anyway, this kind of problem can be difficult for people who have no experience with such matter.

Here is my solution:

The author’s solution:

So long! 🙂

Tagged with: , , ,