1.map用法 一一映射,hashmap key-value 2.pair&make_pair区别 template pair make_pair(T1 a, T2 b) { return pair(a, b); } make_pair返回的是pair的集合 #include<cstdio> #in ...
分类:
其他好文 时间:
2020-01-24 13:21:10
阅读次数:
80
When you want to make some delay in running code you can use Task.Delay(TimeSpan interval) method . This method is similar to Thread.Sleep, but it is ...
分类:
其他好文 时间:
2020-01-24 09:29:21
阅读次数:
108
It may or may not surprise you to know that the bash shell has a very rich array of convenient shortcuts that can make your life, working with the com ...
分类:
系统相关 时间:
2020-01-24 09:24:39
阅读次数:
99
You are given coins of different denominations and a total amount of money. Write a function to compute the number of combinations that make up that a ...
分类:
其他好文 时间:
2020-01-24 09:18:30
阅读次数:
75
Launch X431 Pro Mini Diagnostic Tool with Bluetooth Update Online Powerful Than Diagun Launch X431 Pro Mini Description: X-431 PRO MINI is a stylish A ...
分类:
其他好文 时间:
2020-01-23 21:10:52
阅读次数:
88
package main import ( "fmt" ) func fbn(n int) ([]uint64) { //声明一个切片,切片大小 n fbnSlice := make([]uint64, n) //第一个数和第二个数的斐波那契 为1 fbnSlice[0] = 1 fbnSlice[ ...
分类:
其他好文 时间:
2020-01-23 09:52:52
阅读次数:
72
1. map 语法: package main import ( "fmt" ) func main() { //map的声明和注意事项 var a map[string]string //在使用map前,需要先make , make的作用就是给map分配数据空间 //map声明之后还没有分配空间 ...
分类:
其他好文 时间:
2020-01-23 09:32:46
阅读次数:
59
这个题和$P3203\ $弹飞绵羊基本上完全一致 我的做法是用$LCT$维护信息,开一个节点$fly$,表示到此节点时,小球会弹飞,那么查询弹多少次即为$siz[fly] 1$ 最后一次落在哪个洞可以用维护链上最大值来解决 一些小细节看代码就行了 $code:$ ...
分类:
其他好文 时间:
2020-01-22 23:49:29
阅读次数:
120
模块 模块是什么? 我们说一个函数就是一个功能,那么把一些常用的函数放在一个py文件中,这个文件就称之为模块,模块,就是一些列常用功能的集合体。 为什么要使用模块? 1. 开发效率高,减少重复代码 2. 拿来主义 人们常说的脚本是什么? 脚本就是一个python文件 模块的分类 1.内置模块 2.第 ...
分类:
编程语言 时间:
2020-01-22 21:50:55
阅读次数:
71
3 Creating small tools 创建小工具 这一章的内容主要是关于文件的输入与输出的问题.也就是说:怎么能够将文件作为程序的输入,以及如何将文件作为程序的输出. 用一句话总结,就是:Make program work with files. 定义Standard Input & Sta ...
分类:
其他好文 时间:
2020-01-22 18:32:49
阅读次数:
67