This problem is slightly more difficult than Combined Ages 3. In this case, some of the sums may include multiples of some individuals' ages. As an example: If the ages of all three individuals with Chris's age added again sum to 98, the ages of Barry (twice) and Chris sum to 84, and the ages of Alex (twice) and Barry sum to 70, what are their individual ages?
The individuals will be represented by the first n capital letters of the alphabet and the sums will be represented by variables whose string names contain each associated individual (capital letter). In this example problem, the equations would be represented as:
Though the variables are ordered above, they will not always be in the test cases. Write a function to return the individuals' ages based on the supplied sums. See the test suite for examples and the tags for some hints.
61 Solvers
116 Solvers
49 Solvers
47 Solvers
Make a logical diamond using GALLERY function
46 Solvers
Solution 687990
Hi Ned, it seems that we are no longer seeing the error message strings when a solution fails. This makes it kind of hard to debug when not working from a computer. Any ideas if this could be fixed?
If the great Alfonso is having problems, there must be something really wrong. I'm not sure if this is directly related, but I can no longer use the "Test reference solution" when working on a problem to publish (it hasn't worked for many weeks now). I just have to rely on my local computer passing the solution as good enough, which is almost always good enough. However, I have published some problems in the past with such large test cases that the Cody servers lock up or time out. Therefore, I am reticent to publish certain types of problems until these bugs are fixed. For what it's worth, these problems might have correlated with the server fixes to prevent future spam problems from appearing.
Speaking of this kind of problems, some solutions are now unreachable. Here is an example problem 1653 where there are 15 solvers, 28 solutions but only one solution visible. In consequences Cody claims that I've solved this problem and at the same time is showing it in unsolved ones. As far as I know it is not the only one case. There are also couple of minor errors with recent activity pages where many valuable comments disappeared, same with likes and badges counters. As Grant mentioned above most of those issues looks like consequences after recent spammers attack. Anyway, what is missing the most is the things mentioned by colleagues.
Sorry for messing things up here, but there is one more thing coming to my mind. There are many valuable problems that became unsolvable due to the changes between versions of Matlab and lack of support from creators (long inactivity on Cody, etc.). Maybe there would be possibility to give some editorial privileges to "trusted" users to refresh those problems or repair incorrect testsuites? (but what about affecting previous solutions?)
I personally think that there should be an approval mechanism for every submitted problem.
I agree with Jan and rifat. I discussed this with Ned via e-mail a while back, and I realized that requiring that the individual submit a solution along with the problem might prevent people from posting problems. But, requiring that the problem pass the reference solution, rather than just being a nicety, would solve a lot of these problems. (There hasn't been a lot of activity on Cody in the past few months, anyway.) I just hope that they fix my account, though, before implementing such a measure, since it would block me out at the moment (see comment above). The sheer number of problems with broken test suites is rather annoying. And, as mentioned above, there are a few problems that I would like to solve but that are no longer solvable with the current server/Matlab version.