#include using namespace std; const int n=1<<8; const double EPS=1e-8; int T,ans,t,l; char ss[110]; double A[n+5][n+5],Ans[n+5]; void calc(int s,int len){ // for (int j=0;j>j)&1)+'0'); putchar('-'); for (int i=0;i+2>i)&7)==7||((s>>i)&7)==0){ int x=(s>>i)&1,pos=i+2; while (pos>pos)&1)==x) pos++; int up=(s>>pos),dw=s&((1<