前端网 电子钟 实时报时 html和css部分 <script> var digit=[ [ [1,1,1,1,1,1,1], [1,1,1,1,1,1,1], [1,1,0,0,0,1,1], [1,1,0,0,0,1,1], [1,1,0,0,0,1,1], [1,1,0,0,0,1,1], [ ...
分类:
其他好文 时间:
2016-10-23 11:37:15
阅读次数:
190
Problem: Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. For example: Given num = 38, the process ...
分类:
其他好文 时间:
2016-10-23 07:48:07
阅读次数:
191
原文:http://gitbook.liuhui998.com/1_2.html 一、SHA 在git中,所有用来表示项目历史信息的文件,是通过一个40个字符的(40-digit)“对象名”来索引的,对象名看起来像这样: 6ff87c4664981e4397625791c8ea3bbb5f2279a ...
分类:
其他好文 时间:
2016-10-22 12:22:31
阅读次数:
244
加 ^$ 整个字符串满足要求 不加部分字符串满足要求即可通过 \:转义字符 \d:任意一个数字 (digit:数字) \w:任意一个单词字符( 数字,字母,下划线)(word:单词) \s:任意一个空白字符(\t \r \n \f \x0B) (space:空) \D:任意一个非数字字符 \W:任意 ...
分类:
编程语言 时间:
2016-10-19 07:46:18
阅读次数:
181
题目: Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the tele ...
分类:
其他好文 时间:
2016-10-17 13:21:56
阅读次数:
138
Leftmost Digit Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 16762 Accepted Submission(s): 6643 ...
分类:
其他好文 时间:
2016-10-15 19:52:25
阅读次数:
93
知识点:1:int i;int char1,digit,other;char ch;char1=digit=other=0; 2:算平均成绩和分等级用if语句或者switch,对比这些数的大小,需要一个中间量; 3:五级制成绩输入相对应的百分制成绩区间,用switch语句的时候要在最后记得打brea ...
分类:
其他好文 时间:
2016-10-12 00:21:30
阅读次数:
128
1.题目大意 把前n$n\le 10000$个整数顺次写在一起:12345678910111213……计算0~9各出现了多少次。 2.思路 第一想法是打表,然而觉得稍微有点暴力。不过暂时没有想到更好的办法了,写完看了一下其它人的思路好像也差不多是打表的思路。 3.应注意的问题 (1)首先是格式问题, ...
分类:
其他好文 时间:
2016-10-11 21:41:34
阅读次数:
147
知识点:(1)int i; int char1,digit,other; char ch; char1=digit=other=0; 如果要统计英文字母、数字字符或其他字符的个数,需要用到以上的编译步骤。 (2)算平均成绩和分等级可以用if语句也可以用switch语句,具体用法:if:if(grad ...
分类:
其他好文 时间:
2016-10-10 01:36:11
阅读次数:
84
难度:普及/提高- 题目类型:DFS 提交次数:1 涉及知识:DFS 题目描述 FJ and his cows enjoy playing a mental game. They write down the numbers from 1 to N (1 <= N <= 10) in a certa ...
分类:
其他好文 时间:
2016-10-07 23:30:06
阅读次数:
243