guangheli

 

Code:

#include<cstdio>
#include<algorithm>
#include<ctime>
#include<cstdlib>
using namespace std;
const int maxn = 2000;
int arr[maxn];
int random(int n){ return (long long) rand() * rand() % n; }     //生成一个 0 ~ n 的随机数
int main()
{
    srand((unsigned) time(0));                                   //随机数种子
}

  

分类:

技术点:

相关文章:

  • 2021-12-10
  • 2021-11-29
  • 2022-01-05
  • 2021-09-19
  • 2021-08-16
  • 2021-12-10
  • 2021-09-02
猜你喜欢
  • 2021-12-10
  • 2021-09-02
  • 2021-10-06
  • 2021-10-06
  • 2021-11-29
  • 2021-11-30
相关资源
相似解决方案