【CODEFORCES】 C. 24 Game

Output

If it’s possible, print "YES" in the first line. Otherwise, print "NO" (without the quotes).

If there is a way to obtain24as the result number, in the followingn-1lines print the required operations an operation per line. Each operation should be in form: "aopb=c". Whereaandbare the numbers you’ve picked at this operation;opis either "+", or "-", or "*";cis the result of corresponding operation. Note, that the absolute value ofcmustn’t be greater than1018. The result of the last operation must be equal to24. Separate operator sign and equality sign from numbers with spaces.

If there are multiple valid answers, you may print any of them.

,而做人的能力则会给你一百种机会。

【CODEFORCES】 C. 24 Game

相关文章:

你感兴趣的文章:

标签云: