Write monthly financial report for publication to shareholders. accountancy什么意思?用户组? Task lists...
分类:
其他好文 时间:
2014-09-26 13:31:58
阅读次数:
224
Monthly Expense
题目链接:Click Here~
题目分析:
给出N个数,要求你合并连续的数,使其合并在满足不差过M个合并后的集合的时候,不超过M个集合的和的最大值最小。
思路分析:
1、二分集合的和的最小值。
2、C:判断是否满足集合不超过M个?
#include
#include
#include
using nam...
分类:
其他好文 时间:
2014-09-11 19:28:02
阅读次数:
181
Farmer John是一个令人惊讶的会计学天才,他已经明白了他可能会花光他的钱,这些钱本来是要维持农场每个月的正常运转的。他已经计算了他以后N(1<=N<=100,000)个工作日中每一天的花费moneyi(1<=moneyi<=10,000),他想要为他连续的M(1<=M<=N)个被叫做“清算月...
分类:
其他好文 时间:
2014-09-10 15:27:30
阅读次数:
187
比赛链接:点击打开链接上来先搞了f、c,,然后发现状态不正确,一下午都是脑洞大开,,无脑wa,无脑ce。。。一样的错犯2次。。硬着头皮搞了几发,最后20分钟码了一下G,不知道为什么把1直接当成不能加油的站就会wa。。太弱。。唔···太懒第二天才发题解。。B:Gears并查集题解:点击打开链接C:Co...
分类:
其他好文 时间:
2014-09-06 09:43:02
阅读次数:
196
zoj 3622、Magic Number
水题
先找规律生成区间[1,1内的所有Magic Number,计算出来只有40多个,然后就随便YY了。
void init()
{
int a[5] = {
1,2,5,25,125
};
ll Max = (1ll<<32)-1;
for(ll tmp =1; tmp<=Max; tmp *=10)
{
for(int...
分类:
其他好文 时间:
2014-09-03 13:12:36
阅读次数:
223
1639: [Usaco2007 Mar]Monthly Expense 月度开支Time Limit:5 SecMemory Limit:64 MBSubmit:529Solved:269[Submit][Status]DescriptionFarmer John是一个令人惊讶的会计学天才,他已经...
分类:
其他好文 时间:
2014-08-30 01:13:58
阅读次数:
296
A.ZOJ 3666 Alice and Bob
组合博弈,SG函数应用
#include
#include
#include
#include
using namespace std;
const int maxn = 10000 + 100;
int SG[maxn];
vector g[maxn];
int mex(int u) { //minimal excludant...
分类:
其他好文 时间:
2014-08-27 11:01:08
阅读次数:
324
ZOJ Monthly, August 2014 E题ZOJ月赛 2014年8月 E题http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=5334Easy 2048 AgainTime Limit: 2 Seconds Memory ...
分类:
其他好文 时间:
2014-08-25 21:04:24
阅读次数:
233
Abs ProblemTime Limit: 2 Seconds Memory Limit: 65536 KB Special JudgeAlice and Bob is playing a game, and this time the game is all about the absolute...
分类:
其他好文 时间:
2014-08-25 16:56:44
阅读次数:
261
暑期集训中段就组了队,不过一直没机会打比赛昨天kitkat突然发现了zju要搞月赛,我想了一下题目对于我这种渣实在是有点难,于是想到干脆打一次组队赛吧,跟队友商量了一下也同意了12点---17点 5小时 10道题 虽然难度比一般现场赛低一些 不过形式上差不多 应该还算一次不错的练习机会比赛开始 zh...
分类:
其他好文 时间:
2014-08-25 01:08:33
阅读次数:
274