摘要: t1: #include<cstdio> #include<cstring> const int N=1000010; int a[N],b[N]; int sum=1,maxx=0; int main() { freopen("sequence.in","r",stdin); freopen("s 阅读全文
posted @ 2017-09-16 13:55 12fs 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 1612: [Usaco2008 Jan]Cow Contest奶牛的比赛 Description FJ的N(1 <= N <= 100)头奶牛们最近参加了场程序设计竞赛:)。在赛场上,奶牛们按1..N依次编号。每头奶牛的编程能力不尽相同,并且没有哪两头奶牛的水平不相上下,也就是说,奶牛们的编程能力 阅读全文
posted @ 2017-09-13 14:21 12fs 阅读(138) 评论(0) 推荐(0) 编辑
摘要: #include<cstdio> #include<cstring> #include<algorithm> using namespace std; const int N=205; int map[N][N]; int d[N],tag[N],book[N],f[N]; int n,m; voi 阅读全文
posted @ 2017-09-13 14:10 12fs 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 1613. For Fans of Statistics Time limit: 1.0 secondMemory limit: 64 MB Have you ever thought about how many people are transported by trams every year 阅读全文
posted @ 2017-09-08 14:01 12fs 阅读(159) 评论(0) 推荐(0) 编辑
摘要: B. Dark Assembly time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output B. Dark Assembly time l 阅读全文
posted @ 2017-09-07 19:48 12fs 阅读(293) 评论(0) 推荐(0) 编辑
摘要: 1572: [Usaco2009 Open]工作安排Job Description Farmer John 有太多的工作要做啊!!!!!!!!为了让农场高效运转,他必须靠他的工作赚钱,每项工作花一个单位时间。 他的工作日从0时刻开始,有1000000000个单位时间(!)。在任一时刻,他都可以选择编 阅读全文
posted @ 2017-09-06 17:00 12fs 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 1609: [Usaco2008 Feb]Eating Together麻烦的聚餐 Description 为了避免餐厅过分拥挤,FJ要求奶牛们分3批就餐。每天晚饭前,奶牛们都会在餐厅前排队入内,按FJ的设想所有第3批就餐的奶牛排在队尾,队伍的前端由设定为第1批就餐的奶牛占据,中间的位置就归第2批就 阅读全文
posted @ 2017-09-06 14:47 12fs 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 懒得搬题面QAQ #include<cstdio> #include<cstring> using namespace std; const int mod=1e8+7; const int N=1010; int f[N][N<<1][2]; int main() { freopen("field 阅读全文
posted @ 2017-09-05 21:46 12fs 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 1593: [Usaco2008 Feb]Hotel 旅馆 Description 奶牛们最近的旅游计划,是到苏必利尔湖畔,享受那里的湖光山色,以及明媚的阳光。作为整个旅游的策划者和负责人,贝茜选择在湖边的一家著名的旅馆住宿。这个巨大的旅馆一共有N (1 <= N <= 50,000)间客房,它们在 阅读全文
posted @ 2017-09-05 19:55 12fs 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 时间限制: 1 s 空间限制: 128000 KB 题目等级 : 黄金 Gold 时间限制: 1 s 空间限制: 128000 KB 题目等级 : 黄金 Gold 时间限制: 1 s 空间限制: 128000 KB 题目等级 : 黄金 Gold 时间限制: 1 s 时间限制: 1 s 空间限制: 1 阅读全文
posted @ 2017-08-31 11:40 12fs 阅读(121) 评论(0) 推荐(0) 编辑