Hi I have some problem.
I tried this problem https://codeforces.net/contest/1490/problem/E
https://codeforces.net/contest/1490/submission/142727970
It worked well in custom invocation, but when I submit it, I got a WA.
I want to know why this happened. Is it a technical problem?