knuth(int n, int m){ srand((unsigned int)time(0)); for (int i = 0; i < n; i++) { if ( rand()%(n-i)<m ) { cout << i << endl; (m—); } }} 赞微海报分享
近期评论