摘要:
DFS全排列: #include <iostream> #include <cstring> using namespace std; const int N = 10; int n,path[N]; bool sta[N]; void dfs(int u) { if(u == n) { for(i 阅读全文
posted @ 2020-04-08 22:40
龙雪可可
阅读(108)
评论(0)
推荐(0)
摘要:
区间和: #include <iostream> #include <vector> #include <algorithm> using namespace std; const int N = 300000; int a[N],s[N]; typedef pair<int, int> PII; 阅读全文
posted @ 2020-04-08 11:39
龙雪可可
阅读(128)
评论(0)
推荐(0)