模拟考试题目分享
摘要:1.多米诺骨牌(domino.pas)Jzabc对多米诺骨牌有很大的兴趣,然而他的骨牌比较特别,只有黑色的和白色的两种。他觉得如果存在连续三个骨牌是同一种颜色,那么这个骨牌排列便不是美观的。现在他有n个骨牌要来排列,他想知道不美观的排列个数。由于数字较大,数学不好的他又不会统计,所以他请你来帮忙。希...
阅读全文
*usaco题目分享——Stringsobits
摘要:StringsobitsKim SchrijversConsider an ordered set S of strings of N (1 #include#include#includeusing namespace std;int n,m;long long k;int dp[32][32];...
阅读全文
*usaco题目分享——Contact
摘要:ContactIOI'98The cows have developed a new interest in scanning the universe outside their farm with radiotelescopes. Recently, they noticed a very cu...
阅读全文
codevs题目分享——高精练习
摘要:codevs 3115,3116,3117。主要是对于高精度的练习,还不会的同学可以学习下。//加法#include#includestruct hp{ int w[260];};hp jia(hp a,hp b){ hp c; c.w[0]=a.w[0]>b.w[0]?a.w[0]+1:b....
阅读全文
*usaco题目分享——Party Lamps
摘要:Party LampsIOI 98To brighten up the gala dinner of the IOI'98 we have a set ofN(10 =0), i.e., 1,4,7,...A counter C records the total number of button ...
阅读全文
usaco题目分享——Longest Prefix
摘要:Longest PrefixIOI'96The structure of some biological objects is represented by the sequence of their constituents, where each part is denoted by an up...
阅读全文
usaco题目分享——Money Systems
摘要:Money SystemsThe cows have not only created their own government but they have chosen to create their own money system. In their own rebellious way, t...
阅读全文
usaco题目分享——Controlling Companies
摘要:Controlling CompaniesSome companies are partial owners of other companies because they have acquired part of their total shares of stock. For example,...
阅读全文
usaco题目分享——Agri-Net
摘要:Agri-NetRuss CoxFarmer John has been elected mayor of his town! One of his campaign promises was to bring internet connectivity to all farms in the ar...
阅读全文
usaco题目分享——Bessie Come Home
摘要:Bessie Come HomeKolstad & BurchIt's dinner time, and the cows are out in their separate pastures. Farmer John rings the bell so they will start walkin...
阅读全文
usaco题目分享——Fractions to Decimals
摘要:Fractions to DecimalsWrite a program that will accept a fraction of the form N/D, where N is the numerator and D is the denominator and print the deci...
阅读全文
新的开始(OI)
摘要:二零一六年一月二十三日,寒假的开始,也是竞赛的开始。 虽然已经是高二了,在2015年的Noip上惨淡收场。OI已经不再是执着奋斗的目标了。不过在OI上,这是一个新的开始。 首先,为了还在奋斗的同学加油。 其次,为了高一,初中的OIer更好地学习,我希望我的经验能够帮助到大家些什么。 这就是开博客的...
阅读全文