1. Since p(5? X) = p(5+x), we can know that p(x) is an even function, which is symmetric about y axis. We know the sum of the roots of p(x) =0 from the properties of even functions.
2. Let D be the number of dollars and C be the number of cents in the check.
For ... Then the real value of the check is 100*D+C cents.
The cashier gave her D+100*C cents. Dupa Ea
For five cents, she has D+100*C-350, twice as much as100 * d+c.
This gives you an equation:
D+ 100 * C-350 = 2 *( 100 * D+C),
It can be rearranged in the following form
98*C = 199*D + 350。
You also need a hidden condition:
0<= C<= 99 and 0<= D<= 99.
Now you need to see what the small value of d is, so that 199 * d+5 is exactly a multiple of 98. You do the rest yourself.
I can't do the third question.
The fourth problem should be solved by merging sorting in cs.
The fifth question will not. Should this be the problem of the American Olympics or the Canadian Olympics? Ordinary students can't even calculate four operations correctly. .
I hope the first two questions will help you.