acm
VoidK2
这个作者很懒,什么都没留下…
展开
-
GCD and LCM
最小公倍数,最大公约数模板int gcd(int a,int b) { if(a%b==0) return b; else return gcd(b,a%b); } int lcm(int a,int b) { return (a*b)/gcd(a,b); }原创 2017-08-04 10:25:56 · 413 阅读 · 1 评论 -
2018蓝桥杯省赛准备
ACM代码整合 ACM代码整合 !!!特别提醒 1、最小公倍数gcd 2、最大公约数lcm 3、Fibonacci数列 4、memset初始化 5、fill初始化 6、ctype.h头文件 7、素数系列 8、BFS系列 9、DFS系列 10、动态规划(01背包,完全背包) 11、并查集 12、树状数组 13、快速幂 and 矩阵快速幂 14、最短路 15、string 16、二分搜索 17...原创 2018-03-26 21:12:20 · 3281 阅读 · 4 评论 -
配置vscode 编译运行调试c/c++
配置vscode 编译 运行 调试 C/C++ Visual Studio Code Astyle 规范代码格式 少数英语不影响阅读,转自自己的博客 需要根据自己机器不同,修改四五行json文件名(主要为路径) Visual Studio Code Frist step:download vscode and basic modules download - Astyle - ...原创 2018-05-14 21:39:05 · 1634 阅读 · 0 评论