← 返回 bytedance 的题目列表24 Game
类型:online_judge
Given four integers, the goal is to use addition, subtraction, multiplication, and division to achieve a result of 24. Numbers and operators can be arranged in any order. Integer division would truncate fractions to output integers only, and not all numbers need to be used. Determine if there's a possible expression that results in 24 and implement a function. Consider floating-point errors. Example input: [8, 1, 6, 6]. Output whether it's possible to calculate 24.
Example
Input
[8, 1, 6, 6]