奇怪的機率問題
user_3763047219
c_cpp
3 years ago
321 B
6
Indexable
#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include<math.h>
#define e 2.718281828459
int main()
{
double tplayer = 0, p = 0, numplayer = 0;
double round = 0,win=0;
double q = 1 - p;
while () {
round = round + 1;
win = pow(q, (round - 1)*tplayer) * pow(q, numplayer - 1)*p;
printf()
}
}Editor is loading...