You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
这样就有一个重要性质。 比如**当前的 max 结果是 (cx, cy, cz) 与 (x, y, z) 进行 max 操作,其中 x <= tx, y <= ty, z <= tz,一定不会比不 max 差,其中 (tx, ty, tz) 就是题目给的 target。**这样我们客气可以贪心地与其 max。如果最终 max 结果与 (tx, ty, tz) 相同,那么返回 True, 否则返回 False。
94
+
这样就有一个重要性质。 比如**当前的 max 结果是 (cx, cy, cz) 与 (x, y, z) 进行 max 操作,其中 x <= tx, y <= ty, z <= tz,一定不会比不 max 差,其中 (tx, ty, tz) 就是题目给的 target。** 这样我们可以贪心地与其进行 max 操作。如果最终 max 结果与 (tx, ty, tz) 相同,那么返回 True, 否则返回 False。
0 commit comments