- 博客(3)
- 收藏
- 关注
原创 贪吃蛇
#include #include #include #include #include #include #include #define LEFT 1 #define RIGHT 2 #define UP 3 #define DOWN 4 #define FOODMAX -2 #define FOOD -1 #define F 100000 #define MMM 707070 //乱打的标记
2016-10-21 15:15:41 698
原创 小A点菜(dfs)
#include #include #include #include using namespace std; const int maxn=110; int a[maxn],s,n,m,p[maxn],ans; void dfs(int x,int y){ //printf("%d\n",y); if(y<0)return; if(y==0){ans++;return;} for(in
2016-10-10 16:24:43 455
原创 高精度阶乘
。。。其实就是高精度乘法的翻版,洛谷水题,不解释了。。。 #include #include #include #include using namespace std; struct T{ int x[20000],len; T(int z=0){ memset(x,0,sizeof(x)); if(z==1){x[0]=1;len=1;} } }; T operator *(T
2016-10-06 19:56:25 505
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人