import java.util.*; public class Main { static List<String> res; static Stack<Integer> stk; static void dfs(int[] a, int n, int u, String path, int ti ...
分类:
其他好文 时间:
2020-07-06 19:50:26
阅读次数:
88
###题目描述 Bessie the cow, always a fan of shiny objects, has taken up a hobby of mining diamonds in her spare time! She has collected \(N\) diamonds \(( ...
分类:
其他好文 时间:
2020-07-06 19:44:16
阅读次数:
76
java.util.List 分段 使用google的guava类库对List分段处理 List<Integer> intList = Lists.newArrayList(1, 2, 3, 4, 5, 6, 7, 8); List<List<Integer>> subSets = Lists.pa ...
分类:
编程语言 时间:
2020-07-06 18:02:38
阅读次数:
74
Delphi 判断字符串是否是数字、大小字母、小写字母、纯字母组成 //判断字符串是否是数字 ,返回布尔值 function IsNumberic(Vaule:String):Boolean; var i:integer; begin result:=true; //设置返回值为 是(真) Vaul ...
基本数据类型与包装类的对应关系 byte → Byte short → Short int → Integer long → Long float → Float double → Double char → Character boolean→ Boolean ...
分类:
其他好文 时间:
2020-07-06 10:56:25
阅读次数:
52
数字(Digital)分为整数(Integer)、浮点数(Float)、复数(Complex)、布尔(Boolean) 一:加 + 减 - 乘 * 除 / 取余数 % 幂 ** 只取整数 // print(3+5) #两个数字相加 8print(5-3) #两个数字相减 2print(3*5) #两 ...
分类:
编程语言 时间:
2020-07-06 01:36:10
阅读次数:
99
第一种 public static boolean func(String value) { try { Integer.parseInt(value); return true; } catch (Exception e) { return false; } } public static voi ...
分类:
编程语言 时间:
2020-07-06 01:32:49
阅读次数:
88
java.lang——包含一些Java语言的核心类,如String、Math、Integer、System和Thread,提供常用功能。java.net——包含执行与网络相关的操作的类和接口。java.io——包含能提供多种输入/输出功能的类。java.util——包含一些实用工具类,如定义系统特性 ...
分类:
其他好文 时间:
2020-07-05 19:19:13
阅读次数:
70
分页查询对比正常的查询差别不大,只是在sql语句上有区别 userMapper.class文件 //limit分页List<User> limit(Map<String,Integer> map); User mapper.xml 文件下映射对应文件 <select id="limit" param ...
分类:
其他好文 时间:
2020-07-05 17:42:32
阅读次数:
86
包装类 装箱和拆箱 示例代码: public class Demo2 { public static void main(String[] args) { //JDK1.5之前 //1.装箱操作,基本类型转为引用类型的过程 int num1 = 18; //基本类型数据 //使用Integer类创建 ...
分类:
其他好文 时间:
2020-07-05 15:44:16
阅读次数:
58