- 博客(5)
- 收藏
- 关注
原创 包装好的生出数据的
代码:#include <bits/stdc++.h>#include "My_Random.h"//#define random(x,y) (rand()%((y)-(x)+1)+(x))//using namespace std;using zdw::random;//调用random(x,y)时请保证y>x,其余参数视为未定义行为//传入的参数中不能含有负数/...
2018-06-23 11:09:43 123
原创 生出数据
生成一个树和一个简单环的数据代码:#include <bits/stdc++.h>#define random(x,y) (rand()%((y)-(x)+1)+(x))void tree(){ //生成一个树的数据 int n=random(500,1000);//树的大小 printf("%d\n",n); for(int i=2;i<=n;++i...
2018-06-23 11:01:17 148
原创 Misere Nim LightOJ - 1253 (不一样的nim博弈)
Alice and Bob are playing game of Misère Nim. Misère Nim is a game playing on k piles of stones, each pile containing one or more stones. The players alternate turns and in each turn a player can sele...
2018-06-12 21:43:41 478
原创 A Dangerous Maze (n次伯努利试验中,期望和概率)
You are in a maze; seeing n doors in front of you in beginning. You can choose any door you like. The probability for choosing a door is equal for all doors.If you choose the ith door, it can either t...
2018-06-08 17:25:45 3248
原创 Fair CodeForces - 987D (bfs,设置超级源点,对每个物品进行暴力求解)
Some company is going to hold a fair in Byteland. There are nn towns in Byteland and mm two-way roads between towns. Of course, you can reach any town from any other town using roads.There are kk type...
2018-06-06 16:05:04 316
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人