上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 95 下一页
摘要: 简介 rt code 易半边为结构构成边 for(int i=0; i<mf.IN_v_pairs.size(); i++){ int a = mf.IN_v_pairs[i][0]; int b = mf.IN_v_pairs[i][1]; Mesh::HalfedgeHandle heh = m 阅读全文
posted @ 2021-01-12 10:30 HDU李少帅 阅读(478) 评论(0) 推荐(0)
摘要: 简介 https://zh-google-styleguide.readthedocs.io/en/latest/google-cpp-styleguide/headers/#inline-functions 是google开源C++的中文版本 https://www.cnblogs.com/han 阅读全文
posted @ 2021-01-12 09:40 HDU李少帅 阅读(90) 评论(0) 推荐(0)
摘要: 简介 充分利用多核的性质 参考链接 https://blog.csdn.net/fanyun_01/article/details/79122455 主要用 2)项目-属性-配置属性-C/C++ 常规 多处理器编译:是(/MP) /MP 选项在命令行上以减少总时间编译源文件。/MP 选项使编译器创建 阅读全文
posted @ 2021-01-11 20:43 HDU李少帅 阅读(112) 评论(0) 推荐(0)
摘要: 简介 贪心算法 思路 填2个数量最多的字母,如果下一次该字母数量还是最多的,填1个数量次多的字母 code class Solution1405 { public: string longestDiverseString(int a, int b, int c) { vector<pair<int, 阅读全文
posted @ 2021-01-11 15:14 HDU李少帅 阅读(72) 评论(0) 推荐(0)
摘要: 简介 虽然可以 写一个cmp函数但是太麻烦 正解 sort(v.rbegin(), v.rend()) 从大到小 sort(v.begin(), v.end()) 从小到大 阅读全文
posted @ 2021-01-11 15:06 HDU李少帅 阅读(666) 评论(0) 推荐(0)
摘要: 简介 简单的模拟二进制的加减法 code class Solution1404 { public: int numSteps(string s) { int n = s.size(); int count = 0; while(!(s.size() == 1 && s[0]=='1')){ if(s 阅读全文
posted @ 2021-01-11 14:38 HDU李少帅 阅读(48) 评论(0) 推荐(0)
摘要: 简介 国服第一的刷题视频 参考链接 https://www.bilibili.com/video/BV1W54y197NM?from=search&seid=16875469481128889064 思路 主要用了倒序的思想,因为正序对于求解的不确定性太多了 定义f[n] 表示在第n次开始拿先手可以 阅读全文
posted @ 2021-01-11 13:59 HDU李少帅 阅读(63) 评论(0) 推荐(0)
摘要: 简介 简单题 思路:sprintf 将数字转为字符串,然后新建一个空的字符串然后将逆序统计是否可以被3整除添加0 感觉简单题做的也很慢 参考链接 https://github.com/haoel/leetcode https://github.com/lishaohsuai/leetCode cod 阅读全文
posted @ 2021-01-10 21:37 HDU李少帅 阅读(106) 评论(0) 推荐(0)
摘要: 简介 对于网页端口的python登录 code ''' @Description: @Author: shaonianruntu @Github: https://github.com/shaonianruntu @Date: 2020-05-06 17:28:50 LastEditTime: 20 阅读全文
posted @ 2021-01-10 20:06 HDU李少帅 阅读(303) 评论(0) 推荐(0)
摘要: 简介 应该是qt的头文件或者库有两个 Cannot mix incompatible Qt library (version ) with this library (version ) 解决方案 .bashrc 里面新增 类似下面的东西 QtVersion=5.12.8 QtRoot="/scra 阅读全文
posted @ 2021-01-10 18:04 HDU李少帅 阅读(7804) 评论(0) 推荐(0)
上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 95 下一页