Given a non negative integer num, repeatedly add all its digits until the result has only one digit. Example: Input: 38 Output: 2 Explanation: The pro ...
分类:
其他好文 时间:
2018-10-05 13:55:26
阅读次数:
163
题面: 思路: 蚂蚁问题,转头可以忽略不计。模拟。 注意L从0开始计算。 代码: ...
分类:
其他好文 时间:
2018-10-04 14:31:51
阅读次数:
193
快捷功能 补全 Tab键 粘贴模式 :paste,退出粘贴模式 ctrl + d 语法 var 定义变量 val 定义常量,相当于java中的final,不能重复赋值 1 to 10 [ 1, 10 ] 1 until 10 [ 1,10 ) 字符串求交集 BigInt类型 导包 apply方法,相 ...
分类:
其他好文 时间:
2018-09-27 20:10:45
阅读次数:
150
转自 https://www.cnblogs.com/liwenzhou/p/8178806.html 为什么要用jQuery 做同样的事,jQuery写起来极其简练 jQuery相当于JavaScript的第三方模块(原生的DOM是基础) jQuery的语法设计使得许多操作变得容易,如操作文档对象 ...
分类:
Web程序 时间:
2018-09-26 10:15:34
阅读次数:
189
简介 : 所谓API就是一些已写好、 可供直接调用的类库。Java 具有强大功能的API, 并且还在继续发展中。 首先在网上获取Java 帮助文档 , 然后解压 ,找到相应的API 。 Java 常用包介绍 : java.lang 提供利用java编程语言进行程序设计的基础类。 java until ...
分类:
编程语言 时间:
2018-09-25 15:28:40
阅读次数:
241
存储过程是一个SQL语句集合,当主动去调用存储过程是,可以进行复杂的逻辑。 创建存储过程: (delimiter用来切换SQL语句的终止符) delimiter // create procedure p1() BEGIN select * from t1; END // delimiter ; 执 ...
分类:
其他好文 时间:
2018-09-23 13:47:28
阅读次数:
127
The high level of English is a standard for a top student. 1. Most of the time,what we can’t forget is the memory between us instead of the person we ...
分类:
其他好文 时间:
2018-09-22 15:59:02
阅读次数:
210
在bash有三中类型的循环结构表达方法:for,while,until。这里介绍常用的两种:for和while。 for bash的for循环表达式和python的for循环表达式风格很像: 取值列表有很多种表达方式,可以结合各种命令比如 ls,cat,sed等等 也可以是各种迭代类型,比如: {1 ...
分类:
其他好文 时间:
2018-09-22 12:44:49
阅读次数:
162
一些基础的东西可看下这位仁兄的这五篇,写的还是非常详细的 第一个shell程序 数值运算 if语句和test条件判断 循环语句 for while until shell脚本参数传递和用户交互 另外定义函数可以看http://www.runoob.com/linux/linux-shell-func ...
分类:
系统相关 时间:
2018-09-21 17:40:57
阅读次数:
204
Problem UVA12174-Shuffle Accept: 240 Submit: 1743Time Limit: 3000 mSec Problem Description You are listening to your music collection using the shu?e ...
分类:
其他好文 时间:
2018-09-19 21:50:16
阅读次数:
190