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.
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
-
Is my wife right? Now with even more wrong husband
1322 Solvers
-
Back to basics 19 - character types
262 Solvers
-
Number of 1s in a binary string
9083 Solvers
-
Given a matrix, swap the 2nd & 3rd columns
1072 Solvers
-
757 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!