国内的存款# Money - 海外理财
d*8
1 楼
put operators in a list of numbers so that the result equals to a
number. Give you an array of integers, ask you to write program to put
operators (+ - * / %) between the integers (you may put in paratheis
wherever you want too), to have the equation equals to the result.
eg: 5 * (3 + 8) % 9 = 6
题目是:给你一串数字,让你写程序,把操作符(可以是任意多个 + - * / %)放进各
个数字之
间,同时还可以在任意位置放进括号,让这个算术表达式的值等于一个给定的数字。
比如:给你 5 3 8 9 = 6
你的程序应该输出 5 * (4 + 8) % 9 = 6
number. Give you an array of integers, ask you to write program to put
operators (+ - * / %) between the integers (you may put in paratheis
wherever you want too), to have the equation equals to the result.
eg: 5 * (3 + 8) % 9 = 6
题目是:给你一串数字,让你写程序,把操作符(可以是任意多个 + - * / %)放进各
个数字之
间,同时还可以在任意位置放进括号,让这个算术表达式的值等于一个给定的数字。
比如:给你 5 3 8 9 = 6
你的程序应该输出 5 * (4 + 8) % 9 = 6