整理自兄弟连学习视频
<!--
类型:
无类型 NULL 大小写敏感
布尔型 bool Boolean
数值型
整型 integer
十进制 八进制 十六进制
浮点型 float
1.234 1.2e3 7E-10
当整型过大时,会自动转换成浮点型
字符串...
分类:
Web程序 时间:
2015-05-11 10:48:43
阅读次数:
181
罗马字符转整数注意事项:1 几个罗马字符对应的整数'I': 1;'V': 5;'X':10;'L': 50;'C': 100;'D': 500;'M': 1000;2 对于DC这种前者大于后者的好处理,对于CD这种前者小于后者的,相当于C+D-2*Cclass Solution {public: i...
分类:
其他好文 时间:
2015-05-11 10:45:00
阅读次数:
145
Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array.
Note:
You may assume that nums1 has enough space (size that is greater or equal to m + n) to hold ad...
分类:
其他好文 时间:
2015-05-11 09:08:04
阅读次数:
161
CREATE TABLE students(
stuID INTEGER NOT NULL ,
stuname char(30) not null,
sex int NOT NULL
);
CREATE TABLE students(
stuID INTEGER NOT NULL ,
stuname char(30) not null,
sex ...
分类:
其他好文 时间:
2015-05-10 22:27:45
阅读次数:
171
包装类Java中一切都是对象,所以很多操作都是针对对象的,Java会把常用的数据类型,自动包装成相应的类的对象进行操作。常用的数据类型对应的包装类
装箱装箱就是把基本数据类型变为相应类的对象ArrayList list = new ArrayList();//list的各种操作都是针对对象的
list.add(5);//5本来是int类型的,现在自动包装成了Integer类的对象拆箱拆箱就是把相对...
分类:
编程语言 时间:
2015-05-10 17:25:52
阅读次数:
165
Reverse digits of an integer.Example1: x = 123, return 321Example2: x = -123, return -321注意:1 溢出 2 多用三目表达式 3 逆置处理:(先算位数,再求,比较麻烦导致超时;直接在上次计算基础上rest*1.....
分类:
其他好文 时间:
2015-05-10 16:58:39
阅读次数:
142
SOJ3191 ,Free square,容斥原理,二分,数论。
A positive integer is said to be squarefree if it is divisible by no perfect square larger than 1.
For example, the first few squarefree numbers are {1, 2, 3, 5, 6, 7, 10, 11, 13, 14, 15, 17, 19, ...}.
Can you tell me the...
分类:
其他好文 时间:
2015-05-10 14:25:13
阅读次数:
98
题目描述:
Given an integer, convert it to a roman numeral.
Input is guaranteed to be within the range from 1 to 3999.
题目解析:
将一个整形数的罗马形式表示出来。罗马数字和整形数转换规则参考http://blog.csdn.net/sinat_24520925/arti...
分类:
其他好文 时间:
2015-05-10 09:57:55
阅读次数:
136
HOJ2276, SOJ2498 ,Count prime,区间素数筛,数论
Given an integer interval [L, R](L <= R <= 2147483647, R - L <= 1000000), please calculate the number of prime(s) in the interval....
分类:
其他好文 时间:
2015-05-10 09:47:50
阅读次数:
179
The magic shop in Mars is offering some magic coupons. Each coupon has an integer N printed on it, meaning that when you use this coupon with a product, you may get N times the value of that product b...
分类:
其他好文 时间:
2015-05-10 06:24:46
阅读次数:
163