1 / 5
Feb 23

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?

  • created

    Feb 22
  • last reply

    Feb 24
  • 4

    replies

  • 128

    views

  • 2

    users

  • 1

    link

Is this a problem on SPOJ? I cannot find it if it is, can you post its name or a link to it?

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.