Problem 2195. Sum of the pixel values for the blue color
Solution Stats
Problem Comments
-
7 Comments
That's a beautiful image.
The answer for the first image is wrong. It should be 54784197.
If one looks at the answer set, he/she will see people having been bypassing the first test by fixing the answer. The test cases should be fixed to calculate the sum dynamically with some function forbidden to the user.
@goc3 please check if the test is incorrect as @Rafael mentions.
@Dyuman Joshi: the test suite and description have been updated with the value provided by Rafael S.T. Vieira. At some point in time the image was changed, as the early solutions did not require any hard coding.
Thank you @goc3, appreciate your effort in helping the community!
The problem has been updated to test a built-in image as the linked images are no longer available.
Solution Comments
Show commentsProblem Recent Solvers63
Suggested Problems
-
Project Euler: Problem 2, Sum of even Fibonacci
2301 Solvers
-
Getting the indices from a vector
9855 Solvers
-
Return the first and last characters of a character array
9980 Solvers
-
Fahrenheit to Celsius converter
553 Solvers
-
4977 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!