上一页 1 2 3 4 5 6 7 8 ··· 45 下一页
摘要: 给定一个以字符串表示的非负整数 num,移除这个数中的 k 位数字,使得剩下的数字最小。 注意: num 的长度小于 10002 且 ≥ k。num 不会包含任何前导零。示例 1 : 输入: num = "1432219", k = 3输出: "1219"解释: 移除掉三个数字 4, 3, 和 2 阅读全文
posted @ 2020-11-15 10:40 楼主好菜啊 阅读(417) 评论(0) 推荐(0) 编辑
摘要: clion 环境下载:https://www.cnblogs.com/future-dream/p/9510015.html 学生或教师可以申请免费的 : https://www.jetbrains.com/community/education/#students windows 下载地址: ht 阅读全文
posted @ 2020-11-11 14:42 楼主好菜啊 阅读(373) 评论(0) 推荐(0) 编辑
摘要: #格式化输出 age = 18; print("我的名字是%s, 我的国籍是%s"%("小张","中国")); print("我的年纪:%d"%age); print("aaa", "bbb", "ccc"); print("www", "baidu", "com", sep = '.'); pri 阅读全文
posted @ 2020-10-18 12:02 楼主好菜啊 阅读(68) 评论(0) 推荐(0) 编辑
摘要: leedcode : https://leetcode-cn.com/problems/sum-of-distances-in-tree/ 思路 : 一遍 dfs 可以求到以任意一个点为根,所有点所含孩子的个数,cnt数组记录 考虑每一条边的贡献时,即此边左右节点数相乘 第2遍 dfs, 以其他点为 阅读全文
posted @ 2020-10-06 20:29 楼主好菜啊 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 推荐知乎 : https://zhuanlan.zhihu.com/p/69101372 阅读全文
posted @ 2020-10-06 17:25 楼主好菜啊 阅读(84) 评论(0) 推荐(0) 编辑
摘要: //FILE *stdin1; //FILE *stdin2; //freopen("D:/p/BB/11.txt", "r", stdin); //freopen("D:/p/BB/22.txt", "r", stdin2); freopen("D:/p/BB/1_2.txt", "w", std 阅读全文
posted @ 2020-10-06 10:59 楼主好菜啊 阅读(930) 评论(0) 推荐(0) 编辑
摘要: 推荐链接: https://www.jianshu.com/p/q81RER 标题: # 一级标题 ## 二级标题 ### 三级标题 #### 四级标题 ##### 五级标题 ###### 六级标题 注:# 和「一级标题」之间建议保留一个字符的空格,这是最标准的 Markdown 写法。 列表 - 阅读全文
posted @ 2020-09-26 21:12 楼主好菜啊 阅读(72) 评论(0) 推荐(0) 编辑
摘要: 推荐:https://blog.csdn.net/cyningsun/article/details/8671975 inline double p(CatValue y)//const double M = 1.0; typedef unsigned int CatValue; { return 阅读全文
posted @ 2020-09-26 14:48 楼主好菜啊 阅读(29) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <limits> using namespace std; main(){ cout << std::numeric_limits<double>::max () << endl; cout << std::numeric_limits<in 阅读全文
posted @ 2020-09-26 10:24 楼主好菜啊 阅读(585) 评论(0) 推荐(0) 编辑
摘要: 转自:https://blog.csdn.net/chenKFKevin/article/details/70546685?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-8.chann 阅读全文
posted @ 2020-09-25 15:04 楼主好菜啊 阅读(86) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 45 下一页