摘要:
原文地址:https://en.cppreference.com/w/cpp/container/map/map 阅读全文
posted @ 2018-07-21 23:08
好吧,就是菜菜
阅读(705)
评论(0)
推荐(0)
|
摘要:
原文地址:https://en.cppreference.com/w/cpp/container/map/map 阅读全文
posted @ 2018-07-21 23:08
好吧,就是菜菜
阅读(705)
评论(0)
推荐(0)
摘要:
#include #include #include #include #include using namespace std; int main() { //freopen("d://1.text", "r", stdin); map *maps = new map(); maps->insert(pair(0, "0")); maps->i... 阅读全文
posted @ 2018-07-21 21:59
好吧,就是菜菜
阅读(223)
评论(0)
推荐(0)
摘要:
最高的父类型为Any,最低类型为Nothing Any is the supertype of all types, also called the top type. It defines certain universal methods such as equals, hashCode, an 阅读全文
posted @ 2018-07-15 22:53
好吧,就是菜菜
阅读(342)
评论(0)
推荐(0)
摘要:
val和var的区别 val是值,不可变 var是变量,可变 函数只是过程,函数定义语法 [var-val] = (paramName:paramType,paramName:paramType) => process 方法,方法和函数类型,有以下不用 使用def 关键字定义,有名字,有参数列表,有 阅读全文
posted @ 2018-07-15 22:22
好吧,就是菜菜
阅读(146)
评论(0)
推荐(0)
摘要:
题意: 给你三个杯子,a,b,c,没有刻度,刚开始c杯是满的,倒水的要求,要么倒出水的杯子倒空,要么倒入杯子倒满. 结果: 要求某个杯子内有d水量,并且倒出的水量最少,如果倒不出d水量,那么倒出d1(d1<d)水量,并且倒出的水量最少 解题思路: 总的水量为c,只要知道前俩个杯子的水量,那么第三个杯 阅读全文
posted @ 2018-07-14 18:53
好吧,就是菜菜
阅读(263)
评论(0)
推荐(0)
摘要:
题意: 给你一些小方块,问是不是能组成一个4X4的大方块,所有方块全部要使用,裸枚举 阅读全文
posted @ 2018-06-24 18:41
好吧,就是菜菜
阅读(149)
评论(0)
推荐(0)
摘要:
输出 for end //循环结束输出delete //删除pp对象main end //main函数结束 //下面是5个delete 和 const int NN=5对应 delete deletedeletedeletedelete //所以, delete 0 永远都是安全的 //注意前面有个 阅读全文
posted @ 2018-06-11 00:26
好吧,就是菜菜
阅读(265)
评论(0)
推荐(0)
摘要:
sed '/^.* shareId=.*/s/shareId=.*/ /g' 任意包含shareId=的行执行/s操作,行内所有匹配shareId=.*正则表达式的替换成一个空格 阅读全文
posted @ 2018-06-07 18:52
好吧,就是菜菜
阅读(623)
评论(0)
推荐(0)
|