- 博客(3)
- 资源 (2)
- 收藏
- 关注
原创 B. Minimize the Permutation--Codeforces Round #598 (Div. 3)
B. Minimize the Permutation–Codeforces Round #598 (Div. 3) codeforces链接 题目 You are given a permutation of length n. Recall that the permutation is an array consisting of n distinct integers from 1 to...
2019-11-20 20:52:12
189
原创 快速乘和快速幂
快速乘算法 定义 由于计算机底层的关系,计算机在计算加的时候往往要比计算乘要快,所以我们可以用加法来实现乘法。 乘法其实就是让乘数个被乘数相加(也许可以这么说吧),由于计算机是二进制的,所以我们使用二进制运算加法。 快速乘的原理是乘法分配律。 例如计算20*14,首先把14化成二进制数,1110;然后就是20*0*2^0+20*1*2^1+20*1*2^2+20*1*2^3。 代码实现 typed...
2019-11-20 19:56:39
250
原创 Dominated Subarray[codeforces 1257C]题解
Dominated Subarray[codeforces 1257C]CF—1257C(Dominated Subarray)题目输入输出题目大意样例输入样例输出 CF—1257C(Dominated Subarray) codeforces题目链接 题目 Let’s call an array t dominated by value v in the next situation. At ...
2019-11-16 12:26:25
470
权值线段树和主席树入门
2020-09-25
c++实现进程调度的模拟
2020-04-22
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人