Problem Description
Now an emergent task for you is to open a password lock. The password is consisted of four digits. Each digit is numbered from 1 to 9.
Each time, you can add or minus 1 to any ...
分类:
其他好文 时间:
2014-08-13 14:57:36
阅读次数:
226
find the nth digit
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 8351 Accepted Submission(s): 2381
Problem Description
假设:
S1...
分类:
其他好文 时间:
2014-08-13 14:56:36
阅读次数:
223
采样频率: 每秒采样次数, 记录声音的音高采样质量: 用多少字节来表示音高, 16位可以表示256中音高analog: 模拟digit: 数字adc: 模拟-数字转换dac: 数字-模拟转换关于44100hz早期的录像带, 没每个视频帧有245条扫描线, 红绿蓝3个样本, 每秒60帧245 * 3 ...
分类:
其他好文 时间:
2014-08-12 16:47:54
阅读次数:
199
Problem Description
Let's play a card game called Gap.
You have 28 cards labeled with two-digit numbers. The first digit (from 1 to 4) represents the suit of the card, and the second digit (from 1 ...
分类:
其他好文 时间:
2014-08-12 10:24:14
阅读次数:
379
其实本题和:http://www.geeksforgeeks.org/count-possible-decodings-given-digit-sequence/是类似的。但是这道题需要考虑错误情况。 1 class Solution { 2 public: 3 int numDecodin...
分类:
其他好文 时间:
2014-08-11 20:33:52
阅读次数:
204
题目:
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a linked list.
Input: (2 -> 4 -> 3) + (5 -> 6 -> 4)
Outpu...
分类:
其他好文 时间:
2014-08-10 13:08:30
阅读次数:
296
Description
Problem B.Last Digit
Background
Give you a integer number N (1100). Pleasecompute
S=11+22+33+…+NN
Give the last digit of S to me.
Input
...
分类:
其他好文 时间:
2014-08-09 21:30:19
阅读次数:
211
Description
KEY Inc., the leading company in security hardware, has developed a new kind of safe. To unlock it, you don't need a key but you are required to enter the correct n-digit code on a keyp...
分类:
其他好文 时间:
2014-08-09 00:16:16
阅读次数:
351
1. 正则表达式特殊符号。[:alnum:]:代表英文大小写字符及数字;[:alpha:]:代表英文大小写字符;[:blank:]:代表空格键与[Tab]键;[:cntrl:]:代表键盘上的控制键,即包括CR、LF、Tab、Del键;[:digit:]:代表数字;[:graph:]:除了空格符外的其...
分类:
系统相关 时间:
2014-08-08 15:20:56
阅读次数:
300
import java.util.Random;import javax.swing.JOptionPane;public class Numbers { public static void main(String[] args){ double digit; d...
分类:
其他好文 时间:
2014-08-06 18:11:31
阅读次数:
208