AmazingCounters.com
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 16 下一页
摘要: DescriptionTeacher Mai has a kingdom. A monster has invaded this kingdom, and Teacher Mai wants to kill it.Monster initially has h HP. And it will die... 阅读全文
posted @ 2015-01-07 20:11 philippica 阅读(214) 评论(0) 推荐(0) 编辑
摘要: Though ZCC has many Fans, ZCC himself is a crazy Fan of a coder, called "Memset137".It was on Codefires(CF), an online competitive programming site, t... 阅读全文
posted @ 2015-01-07 16:13 philippica 阅读(213) 评论(0) 推荐(0) 编辑
摘要: Description一次考试共有n个人参加,第i个人说:“有ai个人分数比a56爆大奖在线娱乐高,bi个人分数比a56爆大奖在线娱乐低。”问最少有几个人没有说真话(可能有相同的分数)Input第一行一个整数n,接下来n行每行两个整数,第i+1行的两个整数分别代表ai、biOutput一个整数,a56爆大奖在线娱乐最少有几个人说谎Sample Inp... 阅读全文
posted @ 2015-01-07 15:08 philippica 阅读(310) 评论(0) 推荐(0) 编辑
摘要: DescriptionIn the Byteotian Line Forest there are trees in a row. On top of the first one, there is a little bird who would like to fly over to the t... 阅读全文
posted @ 2015-01-06 20:28 philippica 阅读(193) 评论(0) 推荐(0) 编辑
摘要: Description背景众所周知,花神多年来凭借无边的神力狂虐各大 OJ、OI、CF、TC …… 当然也包括 CH 啦。描述话说花神这天又来讲课了。课后照例有超级难的神题啦…… a56爆大奖在线娱乐等蒟蒻又遭殃了。花神的题目是这样的设 sum(i) a56爆大奖在线娱乐 i 的二进制a56爆大奖在线娱乐中 1 的个数。给出一个正整数 N ,花神要... 阅读全文
posted @ 2014-12-27 22:24 philippica 阅读(315) 评论(0) 推荐(0) 编辑
摘要: 貌似挖的坑也够多了。。。。好多都没填,这篇最后会不会TJ还得看心情TUT看过大白书的人应该都会发现a56爆大奖在线娱乐神奇的算法:中途相遇法。(在第58页)这种算法将以空间换时间的思路运用到了极致,但事实上它在密码学中的作用更大DES在过去的很长时间里都是作为标准出现的,人们花了很多力气都没有发现它有什么唯密文攻击... 阅读全文
posted @ 2014-12-25 13:00 philippica 阅读(3922) 评论(0) 推荐(0) 编辑
摘要: Description圆桌上摆放着n份食物,围成一圈,第i份食物所含热量为c[i]。相邻两份食物之间坐着一个人,共有n个人。a56爆大奖在线娱乐人有两种选择,吃自己左边或者右边的食物。如果两个人选择了同一份食物,这两个人会平分这份食物,每人获得一半的热量。假如某个人改变自己的选择后(其他n-1个人的选择不变),可以... 阅读全文
posted @ 2014-12-25 11:08 philippica 阅读(604) 评论(0) 推荐(0) 编辑
摘要: 题目大意:求点1到所有点最短路径的最大值思路:水题,单源最短路,网上解题清一色dijkstra,但是点数小于100显然floyd更简洁嘛#include#include#define maxn 101#define inf 100000using namespace std;int read(){i... 阅读全文
posted @ 2014-12-23 23:48 philippica 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 很裸的floyd#include#include#include#define maxn 201#define inf 100000using namespace std;int map[maxn][maxn],n,x,y,m;;int main(){ while(1) { scanf("... 阅读全文
posted @ 2014-12-23 18:34 philippica 阅读(170) 评论(0) 推荐(0) 编辑
摘要: Description共有m部电影,编号为1~m,第i部电影的好看值为w[i]。在n天之中(从1~n编号)每天会放映一部电影,第i天放映的是第f[i]部。你可以选择l,r(1#include#include#define maxn 1000000#define ll long longusing n... 阅读全文
posted @ 2014-12-23 12:59 philippica 阅读(198) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 16 下一页