|
rearranging gives: P + E + N = 100 4E < 3P < 4P < 2N
There are 310 solutions to this, so you can only provide a *range* for the price of the pen without further information.
From the results: for smallest P or E: P=2 E=1 N=97 for biggest P: P=32 E=3 N=65 for biggest E: P=26 E=19 N=55
If you said you could buy any of these items using only nickels (5c), there are still 9 possible answers (in the form [P,E,N]): [10,5,85], [15,5,80], [15,10,75], [20,5,75], [20,10,70], [25,5,70], [25,10,65], [25,15,60] or [30,5,65]
The puzzle would be better if you said the total was 10c, not $1.00.
C code: #include <stdio.h> void main(void) { int p,e,n; for (p=1;p<99;p++) for (e=1;e<99;e++) { n=100-p-e; if (n>0 && (4*e<3*p) && (4*p<2*n) ) printf('p=%d e=%d n=%dn',p,e,n); }
As others have said, you are measuring the GAPS between ticks. ie, 6 o'clock is 5 gaps, therefore 6s/gap 12 o'clock is 11 gaps, therefore 66s.
|