Hello everyone, I am trying to solve this problem: https://mirror.codeforces.com/contest/1861/problem/B
My submission: https://mirror.codeforces.com/contest/1861/submission/221639641
My Python code is running correctly in my ide, but i am getting runtime error in the sample testcase in codeforces!!
Am i missing anything??
"import numpy". You can't use it on codeforces(because there are a lot of math functions in it)
Thanks. any other alternative??
You can implement yours own "numpy" with only functions you need :) I am pretty sure the task can be easily solved without numpy.