← All problemsSign in

Travelling Chef Problem

CodeChefRating 2575Open on judge ↗

When Chef is travelling - that's the problem. No one knows when he will change his velocity. But mathematicians are certain that Chef's velocity depends on the current time, and can be described as a cubic polynomial. A cubic polynomial can be defined as: v(t) = A×t3 + B×t2 + C×t + D, where A, B, C, D are rational numbers (A is non zero), and t is the current time. As for us, all we know is: Che

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start