- 博客(6)
- 收藏
- 关注
原创 CCPC秦皇岛站补题
A、Greeting from Qinhuangdao 组合数签到题 //CCPC QHD 7-A Greeting From Qinhuangdao #include<bits/stdc++.h> using namespace std; int gcd(int x,int y) { return (!y) ? x:gcd(y,x%y); } int main() { int T,t; cin>>T; t=T; while(T--) { int r,b,sum;
2020-10-29 00:09:36
213
原创 Four Operations
Little Ruins is a studious boy, recently he learned the four operations! Now he want to use four operations to generate a number, he takes a string which only contains digits ‘1’ - ‘9’, and split it into 5 intervals and add the four operations ‘+’, ‘-‘, ‘*
2020-10-11 12:42:42
224
原创 Sequence Swapping(二维dp)
BaoBao has just found a strange sequence {<, >, <, >, , <, >} of length in his pocket. As you can see, each element <, > in the sequence is an ordered pair, where the first element in the pair is the left parenthesis ‘(’ or the ri
2020-10-08 20:54:30
261
原创 Domination(概率dp,三维dp)
Edward is the headmaster of Marjar University. He is enthusiastic about chess and often plays chess with his friends. What’s more, he bought a large decorative chessboard withN rows andM columns. Every day after work, Edward will place a chess piece on a r
2020-10-04 21:07:00
206
原创 归并排序(mergeSort)
排序算法研究之归并排序(mergeSort) 1.算法思想 例如,对于这样的一个序列进行排序,将其不断分成原来的一半,分到一定细度时,每一个部分只剩下一个元素了,这时我们就可以开始归并了 归并到上一个层级排序然后继续归并,不断归并到更高的层级直到最后归并结束 2.算法核心 在归并过程中,很容易的可以看出归并排序是一层层的去排序,所以它的算法核心是递归。 3.优缺点 优点:时间复杂度比较低 缺点:需要辅助数组,辅存较大,数据较大时不建议使用 4.代码实现 函数部分 template<typena
2020-08-04 19:26:57
338
原创 暑期git初步学习
git的部分简单指令 清屏 ctrl+l 输入信息 git config user.name ## git config user.email ##
2020-08-04 19:24:55
197
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅