/* Markov連鎖の分布の時間発展の計算 Time-stamp: "2021-05-19 Wed 09:19 JST hig" */ #define _CRT_SECURE_NO_WARNINGS /* Visual C++ に必要なおまじない */ #include #define NS 20 int multiply_trans(double pn[], double p[], int d); int measure_dist(double p[], int t, int m); int main(){ int t,tmax; int x; double p[NS]; double pn[NS]; int m=NS; scanf("%d", &tmax); printf("#T=%d\n", tmax); /* ここに初期条件書いてね */ t=0; for(x=0;x