摘要: /* Author: No Name Date : 2016/3/5 */ #include #include #include #include #inlcude "myalgo.h" #define ull unsigned long long #define INTe18 1000000000000000000 #define INT2_e18 20000... 阅读全文
posted @ 2016-08-05 18:14 141421356 阅读(185) 评论(0) 推荐(0)
摘要: #include #include #include #include const long double time_unit=0.0001; const GLdouble PI= 3.1415926536; bool Clear = true; long double detail=1.0; struct mess_point { long double m,x,y,vx,... 阅读全文
posted @ 2016-05-06 17:30 141421356 阅读(233) 评论(0) 推荐(0)
摘要: #include #include #include using namespace std; int comp(const void*a,const void*b) { return *(int*)a-*(int*)b; } bool good_order(const void *a ,const void *b) { return *((long long*)a) ... 阅读全文
posted @ 2016-05-01 17:22 141421356 阅读(236) 评论(0) 推荐(0)
摘要: /* Name: Big int Copyright: free Author: No Name Date: 17/04/16 13:40 Description: Big int */ #include #include #include #include #include #define ull unsigned long long cons... 阅读全文
posted @ 2016-04-09 13:56 141421356 阅读(277) 评论(0) 推荐(0)
摘要: #include using namespace std; #define int_sqrt\ b=(d=0x0000000080000000);\ if((b*b)>n) b^=d;d>>=1;\ b|=d;if((b*b)>n) b^=d;d>>=1;\ b|=d;if((b*b)>n) b^=d;d>>=1;\ b|=d;if((b*b)>n) ... 阅读全文
posted @ 2016-04-02 17:35 141421356 阅读(255) 评论(0) 推荐(0)
摘要: #define BLACK_AI #define WHITE_AI #ifdef BLACK_AI #ifdef WHITE_AI #define WAIT #endif #endif #include #include #include #include #define gotoxy(x,y) SetConsoleCursorPosition(GetStdHandle(STD_OUTPU... 阅读全文
posted @ 2016-03-27 16:44 141421356 阅读(270) 评论(0) 推荐(0)
摘要: #include #define GOAWAY gotoxy(30,20);printf(" ");gotoxy(30,20); #define gotoxy(x,y) SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE),(COORD){2*(x),(y)}) #define drawo(x) gotoxy((x)%... 阅读全文
posted @ 2016-03-25 21:19 141421356 阅读(191) 评论(0) 推荐(0)
摘要: //template<typename Type_>#define Type_ unsignedclass snake{ public: snake(unsigned& size){ pos=new Type_[size]; b_pos=pos; e_pos=pos+size; } ~snake() 阅读全文
posted @ 2016-03-18 17:29 141421356 阅读(101) 评论(0) 推荐(0)
摘要: include#include#include#include#defineMAX_WIDE50#defineMAX_HIGH16shortdx=1,dy=0,randxy,score=0;COORDcoord;structSnake{shortlen;shortbody[MAX_WIDE*MAX_... 阅读全文
posted @ 2016-01-01 10:47 141421356 阅读(290) 评论(0) 推荐(0)