/* Time-stamp: "2021-06-18 Fri 17:18 JST hig" */ #define _CRT_SECURE_NO_WARNINGS // おまじない #include #include #include #define TMAX 100 double getuniform(); double getrandom(double y); int phi2(double path[],int tend); int phi3(double path[],int tend); int main(){ int t,tmax; int n,nmax; int seed; /* 疑似乱数のシード */ double x; double path[TMAX]; double xstart=110.0; scanf("%d",&seed); scanf("%d",&tmax); scanf("%d",&nmax); srand(seed); /* シードの設定 */ printf("#d=%d\n#T=%d\n#N=%d\n",seed,tmax,nmax); for(t=0;t<=tmax;t++){ printf("%d, ",t); } printf("phi2,phi3\n"); for(n=0;n