Editorial for TSS '19 CC P1 - Counting Pieces
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.
Submitting an official solution before solving the problem yourself is a bannable offence.
Authors:
Output:
1 - the number of kings
1 - the number of queens
2 - the number of rooks
2 - the number of bishops
2 - the number of knights
8 - the number of pawns
Comments