Problem 1969. Self-Description
This is a simplified version of the xkcd comic by the same name.
Simply return the angle (in degrees) of the 'black' sector of the pie chart that would make the graph description accurate.
![](http://www.alfnie.com/software/self_description02.png)
Details:
Assume that the pie chart circle covers 36% of the total image area, and that the text, textbox lines, image frame, and outer circumference of the pie (anything painted in black except the pie chart 'black' sector) add up to 6.4% of the total image area.
Return the angle in degrees rounded to 4 decimals.
("detail oriented" players may also assume that the portion of the textbox line which is white (overlapping the pie chart 'black' sector) has already been discounted twice from the 6.4% value above)
Solution Stats
Problem Comments
-
4 Comments
Hello Alfonso. Do you want a hacking of the pcode ? Is it possible ? Or do you want a more common measurement from the image with your parameters?
I was going for the simple measurement (and the .p function was just to avoid publishing the actual solution) but please feel free to explore other approaches as well. While common hacks to pass this problem would work, I believe it might not be possible to hack the piechartsolve.p function to give away the solution (but I will be very interested if that proves to be wrong!)
I tried something in my solution.
Tip: It is useless to count pixels. And it is not a hacking challenge. There is a way to know.
Solution Comments
Show commentsProblem Recent Solvers28
Suggested Problems
-
Check to see if a Sudoku Puzzle is Solved
320 Solvers
-
563 Solvers
-
Sort numbers by outside digits
147 Solvers
-
Getting the absolute index from a matrix
244 Solvers
-
593 Solvers
More from this Author38
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!