题目链接:https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=5155
题意:有n个颜色的球,其中有k对球颜色相同,别的都是完全不同的。给m个盒子,每个盒子的容量为c[i],有sum{c[i]}=n。问:有多少种姿势可以把n个球全部放入...
分类:
其他好文 时间:
2015-05-18 09:03:17
阅读次数:
124
1556: Jerry's trouble
Time Limit: 10 Sec Memory Limit:
256 MB
Submit: 445 Solved: 190
[Submit][Status][Web
Board]
Description
Jerry is caught by Tom. He was penned up in one room with a ...
分类:
其他好文 时间:
2015-05-18 09:02:35
阅读次数:
146
题目
思路
忽然发现小号里有这个代码,然后大号没有做。
思路忘记了,这代码应该是别人的,好像是书上的。
注释解释得也挺清楚了。代码#include
#include
#includeconst int maxn = 1000 + 10; //最大陨石数
const double eps = 1e-8; //控制精度
const doubl...
分类:
其他好文 时间:
2015-05-18 08:59:05
阅读次数:
107
Red and Black
Time Limit: 1000MS
Memory Limit: 30000K
Total Submissions: 25014
Accepted: 13502
Description
There is a rectangular room, covered with square tiles. E...
分类:
其他好文 时间:
2015-05-17 10:51:05
阅读次数:
117
创建客房类型表RoomType创建客房状态表RoomState创建客房信息表Room创建结账状态表ResideState创建客人信息表GuestRecord编写sql语句USE masterGO--创建数据库HotelIF EXISTS (SELECT name FROM sys.databases...
分类:
数据库 时间:
2015-05-16 16:12:48
阅读次数:
178
函数描述encodeURI()把字符串编码为 URIencodeURIComponent()把字符串编码为 URI 组件escape()对字符串进行编码上面是查询来自w3school的资料。那么三者之间有什么区别呢,请容我测试测试。var str = "http://localhost:8080/P...
分类:
Web程序 时间:
2015-05-13 16:29:47
阅读次数:
118
PHP开发绝对不能违背的安全铁则[来源]达内[编辑]达内[时间]2012-12-27使用 mysql_real_escape_string() 作为用户输入的包装器,就可以避免用户输入中的任何恶意 SQL 注入。如果用户尝试通过 SQL 注入传递畸形的密码 作为PHP程序员,特别是新手,对于互联网....
分类:
Web程序 时间:
2015-05-12 12:54:52
阅读次数:
169
题目如下:
At the beginning of every day, the first person who signs in the computer room will unlock the door, and the last one who signs out will lock the door. Given the records of signing in's and...
分类:
其他好文 时间:
2015-05-11 22:08:58
阅读次数:
138
#include using namespace std;const int maxn=1005;const int base=10007;typedef unsigned long long ULL;setsave;int n;int a[4][maxn],b[maxn];int id[maxn=...
分类:
其他好文 时间:
2015-05-11 21:27:47
阅读次数:
113
一.为什么要使用转义字符?1、 HTML中、&等都有特殊的含义(,用于链接签,&用于转义),不能够直接使用,这些符号是不显示在我们最终看到的网页里的,那如果我们希望在网页中显示这些符号,需要进行转义。2、 转义字符串(Escape Sequence)也称字符实体(Character Entity)。...
分类:
编程语言 时间:
2015-05-08 17:56:32
阅读次数:
138