bool isWeNeeded(size_t i){ auto str = to_string(i); size_t count = 0; for(const auto &ch : str){ count += static_cast(ch) % 2; } return (count...
分类:
其他好文 时间:
2015-07-15 22:22:18
阅读次数:
106
Given an integer n, count the total number of digit 1 appearing in all non-negative integers less than or equal to n.For example:Given n = 13,Return 6...
分类:
其他好文 时间:
2015-07-15 20:52:00
阅读次数:
115
css3的出现,解决了不少前端的问题,比如动画,圆角等;这里总结一下css3 的多列布局;w3c上给出了很多属性;我们一般用到column-count、column-gap、column-width这三个属性,其中column-count和column-width最好不要同时出现;还有在规定的多列布...
分类:
Web程序 时间:
2015-07-15 20:35:29
阅读次数:
129
一开始代码是这样的 那个 标签 是我添加的,可是添加之后出问题了。因为我加了一个判断语句,使得不需要的信息没显示出来,导致#li.count 这个显示下标的方法行不通了之后我又用js这样写:然后出来的页面是这样的:原因是:id 只能有一个,如果写在循环里那么就有N个id了,所以86之前的id,都被覆...
分类:
其他好文 时间:
2015-07-15 14:50:49
阅读次数:
100
欢迎使用Markdown编辑器写博客问题描述Given a 2d grid map of ‘1’s (land) and ‘0’s (water), count the number of islands. An island is surrounded by water and is formed by connecting adjacent lands horizontally or verti...
分类:
其他好文 时间:
2015-07-15 13:18:42
阅读次数:
105
在控制台输出1-100之间的所有素数。素数是指一个正整数只能被1和其本身整除。 1 public class PrimeNumber { 2 public static void main(String args[]) { 3 int count = 0; 4 ...
分类:
其他好文 时间:
2015-07-15 12:53:11
阅读次数:
117
题目链接一A,开森~ac代码: 1 class TrieNode { 2 // Initialize your data structure here. 3 char content; 4 boolean isWord; 5 int count; 6 Link...
分类:
其他好文 时间:
2015-07-14 21:59:57
阅读次数:
150
存储过程和函数:创建示例代码:DELIMITER $$CREATE PROCEDURE proc(IN c_id INT, IN c_name VARCHAR(20), OUT count INT)READS SQL DATABEGIN SELECT * FROM course W...
分类:
数据库 时间:
2015-07-14 21:56:36
阅读次数:
180
1、nvl函数。
Oracle 中 : nvl (join_count , 0)
MySQL中:if(join_count is null,'0',join_count)
2、字符串连接。
Oracle中用“||”进行连接;MySQL中用CONCAT进行连接。
3、系统时间。
Oracle中:select sysdat...
分类:
数据库 时间:
2015-07-14 20:30:30
阅读次数:
136
jstat -J-Djstat.showUnsupported=true -name btrace.com.sun.btrace.samples.ThreadCounter.count 11674http://rednaxelafx.iteye.com/blog/796343http://redna...
分类:
Web程序 时间:
2015-07-14 20:14:40
阅读次数:
163