2022年5月11日

二叉树/树笔记

摘要: PART1:建树 1.直接一个数组建树,子节点为当前下标*2以及当前下标*2+1,适用于完全二叉树 2.struct 法(数组大小取决于节点个数 struct node{ int fa,l,r,depth; } 3.链表法(待补充) struct node { bool have_v; int v; 阅读全文

posted @ 2022-05-11 15:16 zesure 阅读(23) 评论(0) 推荐(0) 编辑

2022年5月10日

01背包空间优化

摘要: #pragma GCC optimize(2) #pragma GCC optimize(1) #include<bits/stdc++.h> typedef long long ll; typedef unsigned long long ull; const ull base=131; #def 阅读全文

posted @ 2022-05-10 15:11 zesure 阅读(32) 评论(0) 推荐(0) 编辑

2022年5月9日

codeforce 789 div2 b2

摘要: #pragma GCC optimize(2) #pragma GCC optimize(1) #include<bits/stdc++.h> typedef long long ll; typedef unsigned long long ull; const ull base=131; #def 阅读全文

posted @ 2022-05-09 11:14 zesure 阅读(19) 评论(0) 推荐(0) 编辑

2022年5月5日

欧拉筛板子

摘要: #pragma GCC optimize(2) #pragma GCC optimize(1) #include<bits/stdc++.h> typedef long long ll; typedef unsigned long long ull; const ull base=131; #def 阅读全文

posted @ 2022-05-05 15:27 zesure 阅读(14) 评论(0) 推荐(0) 编辑

2022年4月29日

Terse princess (贪心)

摘要: 原题链接:https://vjudge.csgrandeur.cn/problem/CodeForces-148C/origin #include<stdio.h> #include<math.h> #include<string.h> #include<ctype.h> #include<iost 阅读全文

posted @ 2022-04-29 10:39 zesure 阅读(19) 评论(0) 推荐(0) 编辑

2022年4月28日

A-candle(思维,枚举)

摘要: #include<stdio.h> #include<math.h> #include<string.h> #include<ctype.h> #include<iostream> #include<algorithm> #include<queue> #include<bitset> #inclu 阅读全文

posted @ 2022-04-28 15:28 zesure 阅读(21) 评论(0) 推荐(0) 编辑

2022年4月26日

B - Non-square Equation

摘要: #include<stdio.h> #include<math.h> #include<string.h> #include<ctype.h> #include<iostream> #include<algorithm> #include<queue> #include<bitset> #inclu 阅读全文

posted @ 2022-04-26 14:48 zesure 阅读(17) 评论(0) 推荐(0) 编辑

2022年4月24日

代码源div1 每日一题 二分答案

摘要: #include<stdio.h> #include<math.h> #include<string.h> #include<ctype.h> #include<iostream> #include<algorithm> #include<queue> #include<bitset> typede 阅读全文

posted @ 2022-04-24 18:27 zesure 阅读(33) 评论(0) 推荐(0) 编辑

codeforce C. Boboniu and Bit Operations

摘要: #include<stdio.h> #include<math.h> #include<string.h> #include<ctype.h> #include<iostream> #include<algorithm> #include<queue> #include<bitset> typede 阅读全文

posted @ 2022-04-24 13:54 zesure 阅读(24) 评论(0) 推荐(0) 编辑

2022年4月23日

Educational Codeforces Round 127 C - Dolce Vita

摘要: #include<stdio.h> #include<math.h> #include<string.h> #include<ctype.h> #include<iostream> #include<algorithm> #include<queue> #include<bitset> typede 阅读全文

posted @ 2022-04-23 13:35 zesure 阅读(37) 评论(0) 推荐(0) 编辑

导航