Simple Function

Limits: 1s, 128 MB

Mr. X is course teacher of Numerical Analysis. Gentleman X has announced that if anyone can solve the following problem he/she does not need to participate in Mid-term Exam.


This is a companion discussion topic for the original entry at https://toph.co/p/simple-function