Hi, I'm kindly asking, how does this submission* can passed the test, meanwhile the worst case scenario can be O(N*Q)? ↵
↵
↵
submission: https://codeforces.net/contest/2002/submission/275820009
↵
↵
submission: https://codeforces.net/contest/2002/submission/275820009