A Confusing problem aboud F Magnets last night.
I came up an almost the same idea as the solution. The only difference is that I query &i&,&i&
108735158
submission
Codeforces Round 952 Solution Discussion
CodeChef Starters 128 Solution Discussion