#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 w0=0,win[7],x,y; ZERO(win); FOR(x,6) w0+=(S[0][x]=='o'); 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,N) for(j=i+1;j