03 2018 档案
摘要:蓝桥杯 矩阵翻硬币 暴力 暴力模拟: 但是发现暴力模拟只能通过第一个样例,因为数的范围太大了,所以说是思路上的问题 考虑整个过程 我参考了 "h_hui_hui" 大佬的博客,他写的很详细,很容易看懂 感觉那样一步一步推导出结果的过程很酷,也很难 现在能看懂,但是如果自己想的话就可能出问题,积累经验
阅读全文
摘要:大数相乘 今天运气很好找到一个讲的很好的博客,谢谢你啦@ "静之吾心" 易错点 数组的大小 数组的清零 前导0清除方法 大数相乘的规律 ans[i+j] = a[i] a[j]; 然后在进行进位处理,不停的累加到ans[i+j]上 然后也不用过多担心三位数以上,其实都是可以进位的不必要一下就处理完
阅读全文
摘要:简单并查集 Description Severe acute respiratory syndrome (SARS), an atypical pneumonia of unknown aetiology, was recognized as a global threat in mid March
阅读全文
摘要:quicksort 快速排序 有几个细节比较重要 之前的学习都太过于肤浅,没有深刻理解程序内涵,所以今后写的代码一定要高质量,博客内容也不能太不好,要认真的去对待,全心投入,毕竟有一件可以全身心投入的事情是多么不容易。 快速排序需要记住的几个点 取等条件 在递归的过程中要严格控制取等条件,因为稍不注
阅读全文
摘要:L1 3 宇宙无敌加法器 令人激动的一道题目 题目 地球人习惯使用十进制数,并且默认一个数字的每一位都是十进制的。而在PAT星人开挂的世界里,每个数字的每一位都是不同进制的,这种神奇的数字称为“PAT数”。每个PAT星人都必须熟记各位数字的进制表,例如“……0527”就表示最低位是7进制数、第2位是
阅读全文
摘要:用命令链接github 初始化 需要用ssh公钥链接到github,注意不能从vim中直接复制 介绍一个命令 : xsel
阅读全文
摘要:/ 7 9 集合相似度 / include using namespace std; setss[100]; int aa, bb, n, m, t; void solve(int a, int b){ int same = 0; set::iterator it; for(it = ss[a].b
阅读全文
摘要:``` #include #include #include #include #include #include using namespace std; int vv[10000]; int N, M; void print() { bool t = 1; for(int i= 0 ; i > N >> M; for(int i= 0 ; i > vv[i]; ...
阅读全文
摘要:``` #include #include #include #include #include #include using namespace std; int vv[10000]; int N, M; void print() { bool t = 1; for(int i= 0 ; i > N >> M; for(int i= 0 ; i > vv[i]; ...
阅读全文
摘要:``` include include include include include using namespace std; int bulk[1001]; int n; int main(){ memset(bulk,0,sizeof bulk); cin n; int recnum = 1,
阅读全文
摘要:``` #include #include int getNum(int age){ int a,b,c,d; int num[10]={0}; a=age%10; b=age/10%10; c=age/100%10; d=age/1000; num[a]++; num[b]++; num[c]++; num[d...
阅读全文
摘要:占个坑,等自己数学好一点以后再来重新把这个题写一遍 "附上链接" 附上大牛代码: c++ include include define INF 99999999 define ll long long using namespace std; struct line { int x, y1, y2;
阅读全文
摘要:深度搜索,一开始没有想到,说明基本功还是不够啊,加油
阅读全文
摘要:BigInteger //============================================================================ // Name : test2.cpp // Author : pprp // Version : // Copyrig
阅读全文
摘要:Linux Shell Programming "参考" 流程控制 if for while 无限循环 until case 跳出循环 break语句 continue语句 Shell 基本运算符 关系运算符 | 运算符 | 说明 | 举例 | | | | | | eq | 检测两个数是否相等,相等
阅读全文
摘要:``` include include include include include using namespace std; int n, targetnum, targetlen; int sumlen = 0; int stick[1000]; bool vis[1000]; bool cm
阅读全文