#1014. 和零 I
和零 I
Cannot parse: (0 , import_utils.normalizeSubtasks) is not a function or its return value is not iterable
题目描述
给出 个非负一位数的整数 。在两个整数之间必须选择插入一个加号或减号,请求出所有运算结果为 的式子。
输入格式
个非负一位数。
输出格式
输出所有运算结果为 的式子,可以按照任意顺序输出。
如果一个式子都没有,那么输出 0。
9 5 2 1 4 6
0
9 5 1 1 1 1
9-5-1-1-1-1
1 2 3 2 1 3
1-2-3+2-1+3
1-2+3+2-1-3
1+2-3-2-1+3
1+2-3+2+1-3
1+2+3-2-1-3
Related
In following contests: