上一页 1 2 3 4 5 6 7 8 ··· 10 下一页
摘要: 1 #include<bits/stdc++.h> 2 #define ll long long 3 #define rg register 4 using namespace std; 5 const int N = 6e6 + 10; 6 int a[N]; 7 int t[N][2], cnt 阅读全文
posted @ 2020-12-02 12:19 LegendN 阅读(93) 评论(0) 推荐(0)
摘要: 1 #include<iostream> 2 #include<cmath> 3 #include<cstring> 4 #include<string> 5 #include<vector> 6 #include<stack> 7 #include<set> 8 using namespace s 阅读全文
posted @ 2020-12-01 22:35 LegendN 阅读(134) 评论(0) 推荐(0)
摘要: 太差劲了 1 #include<iostream> 2 #include<algorithm> 3 #include<cstring> 4 #include<cmath> 5 using namespace std; 6 7 double dp[10010][150], p[150][150]; 8 阅读全文
posted @ 2020-11-28 18:52 LegendN 阅读(53) 评论(0) 推荐(0)
摘要: 太差劲了 1 #include<iostream> 2 #include<algorithm> 3 #include<cstring> 4 #include<cmath> 5 #define ll long long 6 using namespace std; 7 const int N = 1e 阅读全文
posted @ 2020-11-28 15:43 LegendN 阅读(69) 评论(0) 推荐(0)
摘要: 异或前缀和 进位加法与不进位加法 a + b = (a ⊕ b) + 2 ∗ (a & b) 01字典树 a ^ b > max(a, b) * 2 阅读全文
posted @ 2020-11-22 14:20 LegendN 阅读(61) 评论(0) 推荐(0)
摘要: 修改区间可以改对应l, r原数组的两个点,二者之间的点再慢慢下推修改 1 #include<iostream> 2 #include<algorithm> 3 #include<cmath> 4 #include<cstdio> 5 #include<cstring> 6 #include<stri 阅读全文
posted @ 2020-11-20 13:13 LegendN 阅读(197) 评论(0) 推荐(0)
摘要: 基本操作: 1 #include<iostream> 2 #include<unordered_set> 3 using namespace std; 4 5 unordered_set<int> s; 6 7 int main(){ 8 int n = 10; 9 for(int i = 1 ; 阅读全文
posted @ 2020-11-19 15:34 LegendN 阅读(174) 评论(0) 推荐(0)
摘要: 1 #include<iostream> 2 #include<cstring> 3 #include<string> 4 #include<cmath> 5 #include<cstdio> 6 #include<queue> 7 #define ll long long 8 #define IN 阅读全文
posted @ 2020-11-18 21:00 LegendN 阅读(112) 评论(0) 推荐(0)
摘要: 1 #include<iostream> 2 #include<algorithm> 3 #include<cstring> 4 #include<cmath> 5 #include<string> 6 using namespace std; 7 8 const int N = 2e5 + 10; 阅读全文
posted @ 2020-11-17 15:44 LegendN 阅读(83) 评论(0) 推荐(0)
摘要: dfs一次解决sum 第二次解决已处理的点的顺序以及未处理的点的顺序 已处理,则存入队列,靠近叶子的点先出 未处理,则存入栈,靠近顶端的点先出 一共跑了三次树 1 #include<iostream> 2 #include<algorithm> 3 #include<cstring> 4 #incl 阅读全文
posted @ 2020-11-15 17:17 LegendN 阅读(165) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 10 下一页