#include using namespace std; typedef signed long long ll; #undef _P #define _P(...) (void)printf(__VA_ARGS__) #define FOR(x,to) for(x=0;x > P; int best() { int win[7],x,y; ZERO(win); for(x=1;xW0;x--) y+=win[x]; return y; } void solve() { int i,j,k,l,r,x,y; string s; cin>>N; FOR(i,6) cin>>S[i]; FOR(i,6) if(S[i][0]=='-') S[i][0]='x'; FOR(i,6) if(S[0][i]=='-') S[0][i]='o'; FOR(i,6) W0+=(S[0][i]=='o'); for(i=1;i