上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 33 下一页
摘要: 欧拉函数φ(N)表示N 的欧拉函数:即小于N且与N互质数 的个数 1.对于素数p, φ(p)=p-1,对于对两个素数p,q φ(pq)=pq-1 2.对于一个正整数N的素数幂分解N=P1^q1*P2^q2*...*Pn^qn. φ(N)=N*(1-1/P1)*(1-1/P2)*...*(1-1/Pn 阅读全文
posted @ 2018-05-09 19:46 ouyang_wsgwz 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 回溯: 阅读全文
posted @ 2018-05-09 11:02 ouyang_wsgwz 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 const int maxn = 205; 8 double a[205][205],dis[205]; 9 int vis[205]; 10 11 double max(double a,double b) 12 { 13 ... 阅读全文
posted @ 2018-05-09 10:18 ouyang_wsgwz 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 1 //Dijkstra 2 #include 3 #include 4 #define Faster ios_base::sync_with_stdio(false),cin.tie(0) 5 #define Read freopen("in.txt","r",stdin),freopen("out.txt","w",stdout) 6 #define Close fclose... 阅读全文
posted @ 2018-05-08 20:05 ouyang_wsgwz 阅读(102) 评论(0) 推荐(0) 编辑
摘要: B. Mancala 阅读全文
posted @ 2018-05-08 19:35 ouyang_wsgwz 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 1 //枚举+BFS 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 using namespace std; 9 10 #define INF 0xfffffff 11 12 int T,N,M,len; 13 char grid[15][15]; 14 ... 阅读全文
posted @ 2018-05-08 16:49 ouyang_wsgwz 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 首先直接通过管理员运行cmd,然后执行 pip install requests 就可以直接安装Requests库了 有个最基本的语句 r = requests.get(url) 通过requests.get,构造一个向服务器请求资源的Request对象(是python内部生成的) get() 返回 阅读全文
posted @ 2018-05-08 12:51 ouyang_wsgwz 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 1 //两遍bfs 2 #include 3 4 using namespace std; 5 6 const int MAXN = 1010; 7 8 int n,m; 9 char G[MAXN][MAXN]; 10 int fire[MAXN][MAXN]; 11 int Time[MAXN][MAXN]; 12 int dir[4][2] ... 阅读全文
posted @ 2018-05-07 21:52 ouyang_wsgwz 阅读(267) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 8 const int maxn = 105; 9 10 char f[10][10] ={ "FILL(1)","FILL(2)","DROP(1)","DROP(2)","POUR(1,2)","POU... 阅读全文
posted @ 2018-05-07 20:25 ouyang_wsgwz 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 using namespace std; 3 4 const int maxn = 2*1e5+5; 5 vectorp[maxn]; 6 vectorc; 7 bool check[maxn]; 8 9 10 void dfs(int x) { 11 check[x] = true; 12 c.push_back(x); 13... 阅读全文
posted @ 2018-05-07 20:22 ouyang_wsgwz 阅读(138) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 33 下一页