Evaluate the polynomial
CodeChefOpen on judge ↗
Your task consists of evaluate a polynomial of degree n (0 Input There will be multiple test cases, each one with 4 lines that are described below n: degree of polynomial. cn cn-1 … c2 c1 c0: coefficients of the polynomial separated by a single space. k: number of points to evaluate the polynomial. x1 x2 … xk-1 xk: points to evaluate the polynomial separated by a single space. The final test
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start