04 2023 档案
摘要:给学妹的加餐🎉🎈 (难度大致升序) https://atcoder.jp/contests/abc158/tasks/abc158_d https://atcoder.jp/contests/abc159/tasks/abc159_e https://atcoder.jp/contests/ab
阅读全文
摘要:AtCoder Beginner Contest 159 https://atcoder.jp/contests/abc159 EF 是打基础的好题 D - Banned K #include <bits/stdc++.h> #define ll long long using namespace
阅读全文
摘要:AtCoder Beginner Contest 158 https://atcoder.jp/contests/abc158 基础不牢,地动山摇 D - String Formation 一个小小的STL应用 #include <bits/stdc++.h> #define ll long lon
阅读全文
摘要:高等数学A(2) UOOC 第二章 错题 驻点就是使得函数一阶导为0的点 放一下潦草的笔记: 2.10 章测验题 偏导存在定义 可微与全增量 隐函数求导 解析:根据隐函数求导法则(全微分方程的性质) 未知 解析:条件极值(拉格朗日乘数法) 复合偏导 就是表达式代换而已。 2.8 极值最值 2.8.2
阅读全文
摘要:一道数位dp的题 无链接,朋友问的。 题目 定义“好数”为倍数为7且数字中不含4的数,编写程序在1秒内找出第n(1<n<1e12)个好数 代码 #include<bits/stdc++.h> #define ll long long using namespace std; const int N
阅读全文
摘要:省赛组队赛暨省赛积分赛1 来写总结。自闭了我就是垃圾,越训越烂www https://vjudge.net/contest/553737#overview 先把补了的题放上,剩下的明天看看能不能写。 D. Dasha and Very Difficult Problem 贪心构造,也是我唯一过的一题
阅读全文
摘要:P8712 [蓝桥杯 2020 省 B1] 整数拼接 https://www.luogu.com.cn/problem/P8712 这题想多了一步。。不需要求逆元,因为最多9位数,所以直接 记录乘积的模值 注意不能用map #include <bits/stdc++.h> #def
阅读全文
摘要:AtCoder Beginner Contest 155 https://atcoder.jp/contests/abc155 D - Pairs 这个二分好难写,疯狂WA,QAQ #include <bits/stdc++.h> #define ll long long using namespa
阅读全文
摘要:AtCoder Beginner Contest 156 https://atcoder.jp/contests/abc156 D - Bouquet 组合数学。 二项式定理。 注意取模之前一定要保证他是正数(有时候只加一次mod可能不够) #include <bits/stdc++.h> #def
阅读全文
摘要:扑克牌 - 期望dp https://www.acwing.com/problem/content/220/ #include <bits/stdc++.h> using namespace std; const int N = 20, inf = 1e9; double f[N][N][N][N]
阅读全文
摘要:AtCoder Beginner Contest 154 https://atcoder.jp/contests/abc154 今天也比较简单。 E - Almost Everywhere Zero 贪心或者数位dp。 (其实我这个贪心应该就是在模拟数位dp) 贪心 #include <bits/s
阅读全文
摘要:AtCoder Beginner Contest 144 https://atcoder.jp/contests/abc144 补一下3.23做的。 D - Water Bottle 分类讨论,三角函数。 #include <bits/stdc++.h> #define pi acos (-1) u
阅读全文
摘要:AtCoder Beginner Contest 153 https://atcoder.jp/contests/abc153 这套比较简单。 E - Crested Ibis vs Monster 完全背包 #include <bits/stdc++.h> #define ll long long
阅读全文
摘要:AtCoder Beginner Contest 152 https://atcoder.jp/contests/abc152 F我看了半天,编码方式那里还算是感觉比较玄乎,这题确实妙。 D - Handstand 2 只需记录两端数字即可,不要想太复杂。 #include <bits/stdc++
阅读全文
摘要:目前只有非常少的一部分,正在逐渐完善中... # 基础 ## 归并排序求逆序对 ```CC int merge_sort (int l, int r) { if (l >= r) return 0; int mid = l + r >> 1; int res = merge_sort (l, mid
阅读全文
摘要:【算法专题】容斥原理 这类题主要是从反方向(所求=全集-补集)去思考,枚举补集的子集,复杂度一般为 适用 左右。 题 E. Devu and Flowers https://codeforces.com/contest/451/problem/E 前置知识:隔板法 然
阅读全文
阅读目录(Content)
此页目录为空