Can some one explain how does The minimum number of wins is found out in this code, or any other way to find out. I got how max wins are found
Question Link -https://codeforces.com/contest/1426/problem/E
AC code - https://codeforces.com/contest/1426/submission/94157384
Can you explain like in the minimum case when does A wins?