Editorial for COCI '13 Contest 6 #1 Vjeko
Submitting an official solution before solving the problem yourself is a bannable offence.
We will split the sample into two parts; the first part being before the asterisk (let us call it
If we take the sample ab*bc
, we have ab
and bc
. The file name abc
begins with ab*bc
. It is necessary to check whether
Hence, if a word doesn't begin with NE
(Croatian for no), else we output DA
(Croatian for yes).
A solution which does not check whether
Comments