摘要:
#include #include #include #include using namespace std;int n=100,m=100000;double random(){ return (double)rand()/RAND_MAX;}int random(int m){ return (int)(random()*(m-1)+0.5);}int main(){ srand(time(NULL)); cout<<n<<' '<<m<<endl; for(int i=0;i<m;i++) { if(rand()%2 阅读全文