08 2022 档案

摘要:总算度过了被踩的暑假训练生活 阅读全文
posted @ 2022-08-21 22:04 PHarr 阅读(508) 评论(0) 推荐(2)
摘要:- 换元法(替代法) - 分部积分法 # 18.1 代替法 **例子1** $$ \int x^2\cos x^3 \mathrm{d} x $$ 要求解这样的一个积分,可以从换元开始,首先使得$t=x^3$,这样自然而然的就可以得到$\cos x^3 = \ cos t$.但是并不能直接把$\ma 阅读全文
posted @ 2022-08-20 15:05 PHarr 阅读(246) 评论(0) 推荐(0)
摘要:I 鸽子的整数运算 #include<bits/stdc++.h> using namespace std; int read() { int x = 0, f = 1, ch = getchar(); while ((ch < '0' || ch > '9') && ch != '-') ch = 阅读全文
posted @ 2022-08-17 20:04 PHarr 阅读(106) 评论(0) 推荐(0)
摘要:A - When? 问21:00后的第k分钟的时间 #include<bits/stdc++.h> using namespace std; const int N = 2e5+5; int n , a[N] , cnt , k; int32_t main(){ int n , h = 21 , m 阅读全文
posted @ 2022-08-16 20:48 PHarr 阅读(30) 评论(0) 推荐(0)
摘要:G 最长递增长度 求一下最长上升子序列,这里用了一个典型的$O(n\log n )$的做法就是模拟栈,并且不断替换栈,使得栈中的元素在保持长度不变的情况下尽可能的小 #include<bits/stdc++.h> using namespace std; int read() { int x = 0 阅读全文
posted @ 2022-08-14 21:06 PHarr 阅读(62) 评论(0) 推荐(0)
摘要:题单地址 https://ac.nowcoder.com/acm/problem/collection/2647 阅读全文
posted @ 2022-08-10 20:38 PHarr 阅读(48) 评论(0) 推荐(0)
摘要:# Notes 栈的模板 ```python class Stack(object): def __init__(self): self.items = [] def empty(self): return self.items == [] def push(self, item): self.it 阅读全文
posted @ 2022-08-10 19:40 PHarr 阅读(57) 评论(0) 推荐(0)
摘要:# 1:打印三角形 ```python n = int( input() ) for i in range( 1 , n + 1 ): for j in range( 0 , i ): print("*",end='') print("") ``` # 2:计算阶乘 ```cpp n = int( 阅读全文
posted @ 2022-08-10 10:57 PHarr 阅读(37) 评论(0) 推荐(0)
摘要:整活场,所以整体的氛围也比较轻松 A 宝藏 答案就是在题目的答案上面,当时我打开后不知道为什么,魔方只打乱了一次,然后就我把那一下拨回去就还原了用时 1s 得到答案后截图,在用取色工具取色,然后输出RGB 码就好 #include<bits/stdc++.h> using namespace std 阅读全文
posted @ 2022-08-09 15:21 PHarr 阅读(87) 评论(0) 推荐(0)
摘要:A 蕾凹娜的哀伤 完全背包的模板题,但是卡了一下时间要用二进制枚举优化一下 #include<bits/stdc++.h> #define int long long using namespace std; int read() { int x = 0, f = 1, ch = getchar() 阅读全文
posted @ 2022-08-01 09:46 PHarr 阅读(38) 评论(0) 推荐(0)