码迷,mamicode.com
首页 >  
搜索关键字:number    ( 26994个结果
HDU The kth great number 优先队列、平衡树模板题(SBT)
The kth great numberTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65768/65768 K (Java/Others) 【Problem Description】Xiao Ming and Xiao Bao are pl...
分类:其他好文   时间:2015-03-08 21:28:52    阅读次数:199
ZOJ2971 Give Me the Number 【模拟】
这道题目使用Map。 然后一次性遍历下来即可。 QAQ注意初始化的时候小心点不要错..Source Code://#pragma comment(linker, "/STACK:16777216") //for c++ Compiler#include #include #include #incl...
分类:其他好文   时间:2015-03-08 21:23:54    阅读次数:134
Plus One
Plus One问题:Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant ...
分类:其他好文   时间:2015-03-08 21:22:25    阅读次数:123
leetcode------Edit Distance
标题:Edit Distance通过率:26.1%难度:难Given two wordsword1andword2, find the minimum number of steps required to convertword1toword2. (each operation is counte...
分类:其他好文   时间:2015-03-08 20:08:42    阅读次数:166
建立信任关系后的远程操作
#!/usr/bin/expect set username [lindex $argv 0] set server_ip [lindex $argv 1] set command [lindex $argv 2] set timeout 10   if {$argc     puts stderr "the argument number for execute remot...
分类:其他好文   时间:2015-03-08 18:53:06    阅读次数:161
LeetCode Excel Sheet Column Number
1.题目Given a column title as appear in an Excel sheet, return its corresponding column number.For example: A -> 1 B -> 2 C -> 3 ... Z -> 26 AA -> 27 AB -> 28 2.解决方案class Solu...
分类:其他好文   时间:2015-03-08 18:52:20    阅读次数:126
leetcode 52. N-Queens II
Follow up for N-Queens problem.Now, instead outputting board configurations, return the total number of distinct solutions.[Solution] 1 int totalNQuee...
分类:其他好文   时间:2015-03-08 15:39:52    阅读次数:110
C语言记忆化搜索___Count the string(Hdu 3336)
Problem Description It is well known that AekdyCoin is good at string problems as well as number theory problems. When given a string s, we can write down all the non-empty prefixes of this string....
分类:编程语言   时间:2015-03-08 14:21:48    阅读次数:396
uva 10718 Bit Mask (位运算)
uva 10718 Bit Mask In bit-wise expression, mask is a common term. You can get a certain bit-pattern using mask. For example, if you want to make first 4 bits of a 32-bit number zero, you can us...
分类:其他好文   时间:2015-03-08 14:21:22    阅读次数:186
Maximum Subarray -- leetcode
Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For example, given the array [?2,1,?3,4,?1,2,1,?5,4], the contiguous subarray [4,?1,2,1] ha...
分类:其他好文   时间:2015-03-08 11:49:56    阅读次数:140
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!