bzoj4097 [Usaco2013 dec]Vacation Planning
摘要:DescriptionAir Bovinia is planning to connect the N farms (1 3, and from 1->2. Sample Output224OUTPUT DETAILS: The trip from 3->2 has only one possibl...
阅读全文
posted @
2015-09-28 22:54
zhber
阅读(305)
推荐(0)
bzoj3890 [Usaco2015 Jan]Meeting Time
摘要:DescriptionBessie and her sister Elsie want to travel from the barn to their favorite field, such that they leave at exactly the same time from the ba...
阅读全文
posted @
2015-09-28 22:49
zhber
阅读(273)
推荐(0)
bzoj4096 [Usaco2013 dec]Milk Scheduling
摘要:DescriptionFarmer John has N cows that need to be milked (1 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 priority_queue q; 8 ...
阅读全文
posted @
2015-09-28 22:45
zhber
阅读(195)
推荐(0)
cf581D Three Logos
摘要:Three companies decided to order a billboard with pictures of their logos. A billboard is a bigsquareboard. A logo of each company is a rectangle of a...
阅读全文
posted @
2015-09-28 22:36
zhber
阅读(961)
推荐(0)
cf581C Developing Skills
摘要:Petya loves computer games. Finally a game that he's been waiting for so long came out!The main character of this game hasndifferent skills, each of w...
阅读全文
posted @
2015-09-28 22:31
zhber
阅读(390)
推荐(0)
cf581B Luxurious Houses
摘要:The capital of Berland hasnmultifloor buildings. The architect who built up the capital was very creative, so all the houses were built in one row.Let...
阅读全文
posted @
2015-09-28 22:26
zhber
阅读(236)
推荐(0)
cf581A Vasya the Hipster
摘要:One day Vasya the Hipster decided to count how many socks he had. It turned out that he hadared socks andbblue socks.According to the latest fashion, ...
阅读全文
posted @
2015-09-28 22:24
zhber
阅读(284)
推荐(0)
2015.9.11模拟赛 codevs4162 bzoj1774【无双大王】
摘要:题目描述 Description 无双大王hzwer扫清六合,席卷八荒,万姓倾心,四方仰德。 hzwer拥有一片领土,其中有n个城市和m条双向道路。他规定每个人在领土上行走都要交过路费,同时进城也要交进城费。不同道路的过路费可能不同,不同城市的进城费可能不同。但是hzwer规定,如果缴纳x的进城费,
阅读全文
posted @
2015-09-11 22:48
zhber
阅读(217)
推荐(0)
2015.9.11模拟赛 codevs 4160【会玩的】
摘要:题目描述 Description hzwer真的很会玩啊…他有一个n*m的方格,每次可以给方格添加一整行或一整列,但是不能删除。现在他想要让总格子数超过k个,但是又想让总格子数尽可能小。请找出这时的n,m。如果有多解,输出任意一种方案。 题目描述 Description hzwer真的很会玩啊…他有
阅读全文
posted @
2015-09-11 22:46
zhber
阅读(217)
推荐(0)
2015.9.11模拟赛 codevs 4159【hzwer的迷の数列】
摘要:题目描述 Description hzwer找了一个人畜无害的迷の数列…… 现在hzwer希望对这个数列进行一些操作,请你来回答hzwer的问题。 操作一:查询第i个数的大小 操作二:把第i个数的大小改成x 操作三:将整个序列反转。即把第i个数放到第n-i+1个。 题目描述 Description
阅读全文
posted @
2015-09-11 22:44
zhber
阅读(318)
推荐(0)
bzoj2019 [Usaco2009 Nov]找工作
摘要:Description奶牛们没钱了,正在找工作。农夫约翰知道后,希望奶牛们四处转转,碰碰运气。而且他还加了一条要求:一头牛在一个城市最多只能赚D(1 2 #include 3 #include 4 using namespace std; 5 int head[100010]; 6 int tot...
阅读全文
posted @
2015-09-08 22:20
zhber
阅读(216)
推荐(0)