M. Yet Another Arbitrary Polynomial Problem
time limit per test
3 seconds
memory limit per test
256 megabytes
input
standard input
output
standard output