Editorial for COCI '15 Contest 6 #1 Bela


Remember to use this editorial only when stuck, and not to copy-paste code from it. Please be respectful to the problem author and editorialist.
Submitting an official solution before solving the problem yourself is a bannable offence.

In order to calculate the total number of points in one game of Bela, we need to sum the points of each card in the game. To determine the number of points each card is worth, we need two pieces of information: whether the card is in the dominant suit (its suit is equal to B), and the value of the card's symbol. Now all we need to do is look up the card's value from the given table. This can be done simply by using conditional statements.


Comments

There are no comments at the moment.