#include using namespace std; typedef unsigned int uint; typedef long long int ll; typedef unsigned long long int ull; #define debugv(v) printf("L%d %s => ",__LINE__,#v);for(auto e:v){cout< ",__LINE__,#m);for(int x=0;x<(w);x++){cout<<(m)[x]<<" ";}cout<>=1,k++)s=(s<<1)|(u&1);for(;0>=1)cout<<(s&1);}} #define TIME chrono::system_clock::now() #define MILLISEC(t) (chrono::duration_cast(t).count()) namespace{ std::chrono::system_clock::time_point t; void tic(){t=TIME;} void toc(){fprintf(stderr,"TIME : %lldms\n",MILLISEC(TIME-t));} } template ostream& operator <<(ostream &o,const pair p){o<<"("< pair& operator+=(pair& p1,const pair& p2){p1.first+=p2.first;p1.second+=p2.second;return p1;} int width,height; int m,n,kei; pair dfs(int index=0,int taro=0,int jiro=0){ static map> memo; int key = (index<<16)|(taro<<8)|(jiro); if (n<=index){ return make_pair(jiro p = make_pair(0,0); for (int j=1;j<=6;++j){ for (int t=index> n >> kei; pair result = dfs(); printf("%.10f\n",((double)(result.first)/(double)(result.second)) ); return 0; }