Match Sticks

Limits 1s, 512 MB

Bob was playing with match sticks and discovered that he can form alphabets and numbers arranging match sticks. Alongside, he also discovered that he can form arithmetic operators like addition (+) or subtraction (-) easily. Now, Bob has created a game and gives Alice to play. Bob gives Alice NNN match sticks and sets the rule like that, if Alice can form an equal number of addition (+) and subtraction (-) along with the letter ‘x’, then Alice wins.

This is a companion discussion topic for the original entry at