摘要:
题目 There are nn chests. The ii-th chest contains aiai coins. You need to open all nn chests in order from chest 11 to chest nn. There are two types of 阅读全文
posted @ 2022-10-13 17:02
towboat
阅读(15)
评论(0)
推荐(0)
摘要:
const int M=1e3; const int N=2e3; int c[N][N]; void init(){ int i,j; c[1][1]=1; for(i=0;i<=M;i++) c[i][0]=1; for(i=2;i<=M;i++) for(j=1;j<=i;j++) c[i][ 阅读全文
posted @ 2022-10-13 11:16
towboat
阅读(26)
评论(0)
推荐(0)
摘要:
全概率公式 #include <iostream> #include <cstring> #include <iomanip> using namespace std; int main(){ double a,b,c; while(cin>>a>>b>>c){ cout<<setprecision 阅读全文
posted @ 2022-10-13 10:53
towboat
阅读(12)
评论(0)
推荐(0)