bzoj1653 [Usaco2006 Feb]Backward Digit Sums
摘要:DescriptionFJ and his cows enjoy playing a mental game. They write down the numbers from 1 to N (1 #includeusing namespace std;int n,m;int a[20],wrk[2...
阅读全文
posted @
2014-07-31 22:23
zhber
阅读(165)
推荐(0)
bzoj1622 [Usaco2008 Open]Word Power 名字的能量
摘要:Description约翰想要计算他那N(1≤N≤1000)只奶牛的名字的能量.每只奶牛的名字由不超过1000个字待构成,没有一个名字是空字体串,约翰有一张“能量字符串表”,上面有M(1≤M≤100)个代表能量的字符串.每个字符串由不超过30个字体构成,同样不存在空字符串.一个奶牛的名字蕴含多少个能...
阅读全文
posted @
2014-07-25 21:17
zhber
阅读(442)
推荐(0)
bzoj1968 [Ahoi2005]COMMON 约数研究
摘要:DescriptionInput只有一行一个整数 N(0 int n,s;int main(){ scanf("%d",&n); for (int i=1;i<=n;i++) s+=n/i; printf("%d",s);}
阅读全文
posted @
2014-07-25 16:45
zhber
阅读(136)
推荐(0)
cf448B Suffix Structures
摘要:B. Suffix Structurestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputBizon the Champion isn't just...
阅读全文
posted @
2014-07-18 00:59
zhber
阅读(223)
推荐(0)
cf448A Rewards
摘要:A. Rewardstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputBizon the Champion is called the Champi...
阅读全文
posted @
2014-07-18 00:57
zhber
阅读(148)
推荐(0)
bzoj1755 [Usaco2005 qua]Bank Interest
摘要:DescriptionFarmer John made a profit last year! He would like to invest it well but wonders how much money he will make. He knows the interest rate R ...
阅读全文
posted @
2014-07-12 21:10
zhber
阅读(170)
推荐(0)
bzoj1753 [Usaco2005 qua]Who's in the Middle
摘要:DescriptionFJ is surveying his herd to find the most average cow. He wants to know how much milk this 'median' cow gives: half of the cows give as muc...
阅读全文
posted @
2014-07-12 20:48
zhber
阅读(173)
推荐(0)
2014.7.8模拟赛【词编码】
摘要:一个发送机可以通过一条隧道发送一些以二进制代码组成的单词。在其尽头的接收机可以使用特殊技术恢复到最初的单词。每个单词最初都由0和1组成。所有的单词最-初长度都为n(4≤N ≤l000)。当穿过隧道之后单词可能发生以下几种情况之一: (1)任意(一个)0被1取代 (2)任意(一个)符号被删除 (3)一...
阅读全文
posted @
2014-07-08 22:29
zhber
阅读(152)
推荐(0)
cf445A DZY Loves Chessboard
摘要:A. DZY Loves Chessboardtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputDZY loves chessboard, and ...
阅读全文
posted @
2014-07-06 23:28
zhber
阅读(210)
推荐(0)
cf443B Kolya and Tandem Repeat
摘要:B. Kolya and Tandem Repeattime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputKolya got stringsfor h...
阅读全文
posted @
2014-06-20 17:07
zhber
阅读(336)
推荐(0)
cf443A Anton and Letters
摘要:A. Anton and Letterstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputRecently, Anton has found a ...
阅读全文
posted @
2014-06-20 16:30
zhber
阅读(231)
推荐(0)
bzoj1666[Usaco2006 Oct]Another Cow Number Game 奶牛的数字游戏
摘要:Description奶牛们又在玩一种无聊的数字游戏。输得很郁闷的贝茜想请你写个程序来帮她在开局时预测结果。在游戏的开始,每头牛都会得到一个数N(1#include#include#include#include#includeusing namespace std;inline int read(...
阅读全文
posted @
2014-06-02 23:28
zhber
阅读(236)
推荐(0)
cf437C The Child and Toy
摘要:C. The Child and Toytime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputOn Children's Day, the child ...
阅读全文
posted @
2014-06-01 23:48
zhber
阅读(241)
推荐(0)
cf437B The Child and Set
摘要:B. The Child and Settime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputAt the children's day, the ch...
阅读全文
posted @
2014-06-01 23:41
zhber
阅读(260)
推荐(0)
cf437A The Child and Homework
摘要:A. The Child and Homeworktime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputOnce upon a time a child...
阅读全文
posted @
2014-06-01 23:35
zhber
阅读(261)
推荐(0)
cf435C Cardiogram
摘要:C. Cardiogramtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputIn this problem, your task is to use...
阅读全文
posted @
2014-05-31 23:35
zhber
阅读(238)
推荐(0)
cf435A Queue on Bus Stop
摘要:A. Queue on Bus Stoptime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputIt's that time of the year wh...
阅读全文
posted @
2014-05-31 23:32
zhber
阅读(223)
推荐(0)