In this video, I'll show you the various ways of adding comments to PHP scripts.小结一下几种注释形式:HTML: ;CSS: /* */ ;JS: // , /* */ ;PHP: # , // , /* */ ; I'...
分类:
其他好文 时间:
2014-10-28 12:03:27
阅读次数:
261
UVA 357 Let Me Count The Ways(完全背包)
http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=293
题意:
有5种硬币: 1分 5分 10分 25分 和50分. 现在给你一个面值n, 问你有多少种方法能利用上述硬币组合出n分的金钱.
分析:
典型的完全背包问题.
本题的限制条件: 硬币钱数正好等于n...
分类:
其他好文 时间:
2014-10-27 21:22:05
阅读次数:
246
UnicodeDecodeError:‘ascii‘codeccan‘tdecodebyte0xbcinposition3746:ordinalnotinrange(128)解决:cd/var/lib/rpm/rm-i__db.*yumcleanall
分类:
其他好文 时间:
2014-10-27 15:46:32
阅读次数:
366
1 --首先查看有哪些锁 2 select /*+ rule */ s.username, 3 decode(l.type,'TM','TABLE LOCK','TX','ROW LOCK',null) lock_level, 4 o.owner, 5 o.ob...
分类:
数据库 时间:
2014-10-27 09:14:02
阅读次数:
355
You are climbing a stair case. It takesnsteps to reach to the top.Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb...
分类:
其他好文 时间:
2014-10-27 00:08:57
阅读次数:
277
A message containing letters from A-Z is being encoded to numbers using the following mapping:
'A' -> 1
'B' -> 2
...
'Z' -> 26
Given an encoded message containing digits, determine the total numb...
分类:
其他好文 时间:
2014-10-26 17:04:00
阅读次数:
194
可达矩阵的K次幂便是从i到j走K步能到达的方案数。注意处理k=0的情况。#include #include #include #include #include #include #include #include #include #include using namespace std; #de...
分类:
其他好文 时间:
2014-10-24 20:36:54
阅读次数:
191
Perface In the former chapter, I talk about topics about hashCode, And I will continue to finish the introduction to hashCode(). In this chapter, I w....
分类:
编程语言 时间:
2014-10-24 20:28:01
阅读次数:
486
New Zealand currency consists of $100, $50, $20, $10, and $5 notes and $2, $1, 50c, 20c, 10c and 5c coins. Write a program that will determine, for any given amount, in how many ways that amount may b...
分类:
其他好文 时间:
2014-10-23 22:49:46
阅读次数:
247
python逆向获取DNS时用到一个函数socket.gethostbyaddr,传入本地主机地址后报错如下: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb0 in position 0: invalidcontinuation .....
分类:
编程语言 时间:
2014-10-23 12:18:50
阅读次数:
242