Please tell me if the word on the left can have all digits and the sign ‘*’ and this word can be accepted? Which characters in the word are allowed?
Is this a problem on SPOJ? I cannot find it if it is, can you post its name or a link to it?
yes.
I used asserts to show the neither * nor # appear in the input. The second example shows that digits can appear as part of the word.
thank you