2015年6月30日

BZOJ2456

摘要: 2456: modeDescription给你一个n个数的数列,其中某个数出现了超过n div 2次即众数,请你找出那个数。Input第1行一个正整数n。第2行n个正整数用空格隔开。Output 一行一个正整数表示那个众数。Sample Input53 2 3 1 3Sample Output3HI... 阅读全文

posted @ 2015-06-30 21:17 diamonddd 阅读(360) 评论(0) 推荐(0) 编辑

2015年6月15日

BZOJ1003

摘要: 1003: [ZJOI2006]物流运输transTime Limit: 10 SecMemory Limit: 162 MB Submit: 4160Solved: 1735 [Submit][Status][Discuss]Description物流公司要把一批货物从码头A运到码头B。由于货物量... 阅读全文

posted @ 2015-06-15 14:50 diamonddd 阅读(159) 评论(0) 推荐(0) 编辑

BZOJ1002

摘要: 1002: [FJOI2007]轮状病毒Description给定n(N_ 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 using namespace std; 9 int n;10 struct gj11 ... 阅读全文

posted @ 2015-06-15 14:44 diamonddd 阅读(118) 评论(0) 推荐(0) 编辑

2015年6月14日

BZOJ1001

摘要: 1001: [BeiJing2006]狼抓兔子Description现在小朋友们最喜欢的"喜羊羊与灰太狼",话说灰太狼抓羊不到,但抓兔子还是比较在行的,而且现在的兔子还比较笨,它们只有两个窝,现在你做为狼王,面对下面这样一个网格的地形:左上角点为(1,1),右下角点为(N,M)(上图中N=4,M=5... 阅读全文

posted @ 2015-06-14 14:34 diamonddd 阅读(277) 评论(0) 推荐(0) 编辑

BZOJ1000

摘要: DescriptionCalculate a+bInputTwo integer a,b (0_ 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 int a,b; 8 void init() 9 {10 ... 阅读全文

posted @ 2015-06-14 14:23 diamonddd 阅读(88) 评论(0) 推荐(0) 编辑

导航