摘要:
这题一看就是算概率,把题意弄懂后,顺利推出公式,x*1/(n/mx) = mx*x/n.因为精度wa了一次= =,然后输出少了空格PE了一次,额...代码:#include<cstdio>#include<cstring>#include<iostream>using namespace std;#define int64 long longint64 n, m, x;#define INF 21623int64 gcd(int64 a, int64 b){ return b==0? a: gcd(b, a%b);}int64 getx(int64& 阅读全文