#include #define REP(i,n,N) for(int i=(n);i<(int) N;i++) #define p(s) cout<<(s)<>N>>K; dp1[0][0]=dp2[0][0]=1; REP(i,0,N) REP(j,0,i*6+1) REP(k,1,7) dp1[i+1][j+k]+=dp1[i][j]/6.0; REP(i,0,N) REP(j,0,i*6+1) { if(i