随笔分类 - 水水更健康
摘要:Mike and some bears are playing a game just for fun. Mike is the judge. All bears except Mike are standing in ann × mgrid, there's exactly one bear in...
阅读全文
摘要:Colonel hasnbadges. He wants to give one badge to every of hisnsoldiers. Each badge has acoolness factor, which shows how much it's owner reached. Coo...
阅读全文
摘要:Little Susie loves strings. Today she calculates distances between them. As Susie is a small girl after all, her strings contain only digits zero and ...
阅读全文
摘要:Little Susie, thanks to her older brother, likes to play with cars. Today she decided to set up a tournament between them. The process of a tournament...
阅读全文
摘要:Problem DescriptionSVM(Support Vector Machine)is an important classification tool, which has a wide range of applications in cluster analysis, communi...
阅读全文
摘要:Problem DescriptionAfter losing all his chips when playing Texas Hold'em with Fsygd on the way to ZJOI2015, ZCC has just learned a black technology. N...
阅读全文
摘要:Problem DescriptionThere is a piece of paper in front of Tom, its length and width are integer. Tom knows the area of this paper, he wants to know the...
阅读全文
摘要:A map of some object is a rectangular field consisting ofnrows andncolumns. Each cell is initially occupied by the sea but you can cover some some cel...
阅读全文
摘要:You are given a stringq. A sequence ofkstringss1, s2, ..., skis calledbeautiful, if the concatenation of these strings is stringq(formally,s1 + s2 + ....
阅读全文
摘要:For an upcoming programming contest, Edward, the headmaster of Marjar University, is forming a two-man team fromNstudents of his university.Edward kno...
阅读全文
摘要:#include#includeusing namespace std;int main(){ int n; int a[11][11]; while(~scanf("%d",&n)){ memset(a,0,sizeof(a)); int tot = ...
阅读全文
摘要:Descriptionn个水手来到一个岛上,采了一堆椰子后,因为疲劳都睡着了。一段时间后,第一个水手醒来,悄悄地将椰子等分成n份,多出一个椰子,便给了旁边的猴子,然后自己藏起一份,再将剩下的椰子重新合在一起,继续睡觉。不久,第二名水手醒来,同样将椰子了等分成n份,恰好也多出一个,也给了猴子。然而自己...
阅读全文
摘要:DescriptionSome days ago, I learned the concept of LCM (least common multiple). I've played with it for several times and I want to make a big number ...
阅读全文
摘要:Description郭橐驼,不知始何名。病偻,隆然伏行,有类橐驼者,故乡人号之驼。驼闻之,曰:“甚善。名我固当。”因舍其名,亦自谓橐驼云。其乡曰丰乐乡,在长安西。驼业种树,凡长安豪富人为观游及卖果者,皆争迎取养。视驼所种树,或移徙,无不活;且硕茂,蚤实以蕃。他植者虽窥伺效慕,莫能如也。 有问之...
阅读全文
摘要:hroughout Igor K.'s life he has had many situations worthy of attention. We remember the story with the virus, the story of his mathematical career an...
阅读全文
摘要:Description《Shui Hu Zhuan》,also 《Water Margin》was written by Shi Nai'an -- an writer of Yuan and Ming dynasty. 《Shui Hu Zhuan》is one of the Four Great...
阅读全文
摘要:DescriptionIn this problem your goal is to sort an array consisting ofnintegers in at mostnswaps. For the given array find the sequence of swaps that ...
阅读全文
摘要:DescriptionAmr loves Geometry. One day he came up with a very interesting problem.Amr has a circle of radiusrand center in point(x, y). He wants the c...
阅读全文
摘要:Problem DescriptionNowadays we use content of PM2.5 to discribe the quality of air. The lower content of PM2.5 one city have, the better quality of ai...
阅读全文
摘要:There arenImperial stormtroopers on the field. The battle field is a plane with Cartesian coordinate system. Each stormtrooper is associated with his ...
阅读全文

浙公网安备 33010602011771号