a=2sump−1a=2^{sum_{p-1}}a=2sump−1 b=∑t=rp+1cntp(cntpt)=2cntp−∑t=1rp(cntpt)b=\sum_{t=r_p+1}^{cnt_p} \binom{cnt_p}{t}=2^{cnt_p} -\sum_{t=1}^{r_p} \binom{cnt_p}{t}b=t=rp+1∑cntp(tcntp)=2cntp−t=1∑rp(tcntp) c=∏i=p+160(cntiri)c=\prod_{i=p+1}^{60} \binom{cnt_i}{r_i}c=i=p+1∏60(ricnti) ans=a×b×cans=a\times b\times cans=a×b×c