import java.util.Arrays; import java.util.Scanner; public class Main43 { public static void main(String[] args) { Main43 p = new Main43(); } public Main43() { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[][] isWon = new int[n][n]; for(int i=0;i=0;i--){ if(last != w[i]){ rank++; last = w[i]; } if(w[i] == playerWin){ res = rank; break; } } return res; } }