NOIP welfare tournament (2019.8.23)

welfare????

Well, really I am just too zz welfare

 Not too good last time on shab turnover ratio is more stable but it is not enough to continue to refuel ah ah

A

 

 

Solution: water solution of the problem I will not say

Just ... open array ever before to open a large open big points today opened the 3000 * 3000 3500 * 3500 on MLE I am convinced should still count the first space and should open 3005 * 3005

 

 

 

Solution: I actually expect too ** the last one and a half hour knock count on the test I doing ??? 

F defines $ [i] [j] [x] [y] [z] $ j-th slave has a front blood times i a x y z a a probability of three two blood desired blood

Transfer equation  Note multidimensional array should be used to open the scroll array

                if(j==7) {
                            if(t>=1&&p+1<=7)    f[(i+1)&1][j][l][p+1][t-1]+=((f[i&1][j][l][p][t])*(t*inv[j]%mod))%mod;
                            if(p>=1&&l+1<=7)    f[(i+1)&1][j][l+1][p-1][t]+=(f[i&1][j][l][p][t])*(p*inv[j]%mod);
                            if(l>=1&&j>=1)    f[(i+1)&1][j-1][l-1][p][t]+=(f[i&1][j][l][p][t])*(l*inv[j]%mod);
                        } else {
                            if(j+1<=7&&p+1<=7)f[(i+1)&1][j+1][l][p+1][t]+=(f[i&1][j][l][p][t])*(t*inv[j]%mod);
                            if(p>=1&&l+1<=7&&j+1<=7&&t+1<=7)f[(i+1)&1][j+1][l+1][p-1][t+1]+=(f[i&1][j][l][p][t])*(p*inv[j]%mod);
                            if(l>=1&&j>=1)    f[(i+1)&1][j-1][l-1][p][t]+=(f[i&1][j][l][p][t])*(l*inv[j]%mod);

I did not take my silly probability of metastasis .....

After the program must be adjusted yourself time to think about their own exam I would not want to play more than one hour does not come out ....

 

C

...... simulation title I I I .....

 


I will not .... simulation
excess over to the next one until I can not turn up whether statistics
A[i]==B[i]
 

Guess you like

Origin www.cnblogs.com/OIEREDSION/p/11402316.html