#include
#include
using namespace std;
/*
* 求整数n的划分
* n, m
* 在整数n的所有划分中, 最大加数 n1<=m 的划分记做p(n, m);
* 1. p(n, 1) = 1; (m == 1)
* 2. p(n, n) = 1 + p(n, n-1); (n == m)
*...
分类:
其他好文 时间:
2014-09-01 10:47:42
阅读次数:
144
Codeforces Round #264 (Div. 2) A...
分类:
其他好文 时间:
2014-08-31 09:16:41
阅读次数:
220
嘀嘀嘀
有人知道 重载的时候 加了 sz=1;就一直CE怎么破???如果有人看到能教教我吗??我还不会c++弱菊不胜感谢!Orz
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
#include
#include
#include
#include
#inc...
分类:
其他好文 时间:
2014-08-28 16:12:39
阅读次数:
175
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3671
Japanese Mahjong III
Time Limit: 2 Seconds Memory Limit: 65536 KB
Mahjong is a game of skill, strategy and ca...
分类:
其他好文 时间:
2014-08-26 21:31:16
阅读次数:
346
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3805
Machine
Time Limit: 2 Seconds Memory Limit: 65536 KB
In a typical assembly line, machines are connected one b...
分类:
其他好文 时间:
2014-08-25 21:17:04
阅读次数:
296
题目描述:
Given an increasing sequence S of N integers, the median is the number at the middle position. For example, the median of S1={11, 12, 13, 14} is 12, and the median of S2={9, 10, 15, 16, 17} is 15. The median of two sequences is defined to be...
分类:
其他好文 时间:
2014-08-24 19:24:22
阅读次数:
235
Problem Description
N(3
Each player has a unique skill rank. To improve their skill rank, they often compete with each other. If two players want to compete, they must choose a referee among oth...
分类:
其他好文 时间:
2014-08-23 15:27:21
阅读次数:
253
聪明的kk
时间限制:1000 ms | 内存限制:65535 KB
难度:3
描述聪明的“KK”
非洲某国展馆的设计灵感源于富有传奇色彩的沙漠中陡然起伏的沙丘,体现出本国不断变换和绚丽多彩的自然风光与城市风貌。展馆由五部分组成,馆内影院播放名为《一眨眼的瞬间》的宽银幕短片,反映了建国以来人民生活水平和城市居住环境的惊人巨变。
可移动“沙丘”变戏法 的灵感源于其独...
分类:
其他好文 时间:
2014-08-22 21:10:29
阅读次数:
247
比较裸的二分,但是比赛的时候脑抽,用树状数组瞎搞过了,但是边界条件没注意让hack了。
后来看到有人写了很简单的版本,又过了一遍,提醒一下自己不能忘记基本算法。
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
typedef long long ll;
in...
分类:
其他好文 时间:
2014-08-21 22:52:45
阅读次数:
238
Expedition
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 6890
Accepted: 2065
Description
A group of cows grabbed a truck and ventured on an expedition de...
分类:
其他好文 时间:
2014-08-17 19:59:02
阅读次数:
1506