using System; using System.Collections.Generic; using System.Text; public class Program { public void Proc(){ Reader.IsDebug = false; int teamCount = int.Parse(Reader.ReadLine()); char[,] map = new char[teamCount, teamCount]; for(int i=0; i= target.GetLength(1)) { nextRow++; nextCol = nextRow + 1; } char[,] work = this.CloneCopy(target); work[i,j] = 'o'; work[j,i] = 'x'; ans = Math.Min(this.GetAns(nextRow, nextCol, work), ans); work[i, j] = 'x'; work[j, i] = 'o'; ans = Math.Min(this.GetAns(nextRow, nextCol, work), ans); return ans; } } } } Dictionary> winCount = new Dictionary>(); List keyList = new List(); for(int i=0; i()); keyList.Add(num); } winCount[num].Add(i); } keyList.Sort(); keyList.Reverse(); for(int i=0; i