随笔分类 -  水

摘要:Problem Description 下面是512汶川大地震部分受灾学校伤亡情况(惨痛!!)1、 四川省都江堰市 聚源中学伤亡情况:遇难学生人数(含失踪)320详细说明: 一栋教学楼被震垮,该楼18个班420多名学生被埋,截至目前仅有不到100名获救。2、 四川省绵阳市 北川县北川中学伤亡情况:遇 阅读全文
posted @ 2017-07-13 13:22 limyel 阅读(284) 评论(0) 推荐(0)
摘要:Problem Description 在2×n的一个长方形方格中,用一个1× 2的骨牌铺满方格,输入n ,输出铺放方案的总数.例如n=3时,为2× 3方格,骨牌的铺放方案有三种,如下图: Input 输入数据由多行组成,每行包含一个整数n,表示该测试实例的长方形方格的规格是2×n (0<n<=50 阅读全文
posted @ 2017-07-13 12:12 limyel 阅读(172) 评论(0) 推荐(0)
摘要:Description 甜甜从小就喜欢画图画,最近他买了一支智能画笔,由于刚刚接触,所以甜甜只会用它来画直线,于是他就在平面直角坐标系中画出如下的图形: 甜甜的好朋友蜜蜜发现上面的图还是有点规则的,于是他问甜甜:在你画的图中,我给你两个点,请你算一算连接两点的折线长度(即沿折线走的路线长度)吧。 I 阅读全文
posted @ 2017-06-17 00:32 limyel 阅读(271) 评论(0) 推荐(0)
摘要:Description There are another kind of Fibonacci numbers: F(0) = 7, F(1) = 11, F(n) = F(n-1) + F(n-2) (n>=2). Input Input consists of a sequence of lin 阅读全文
posted @ 2017-04-12 22:32 limyel 阅读(149) 评论(0) 推荐(0)
摘要:Descripe Given a string containing only 'A' - 'Z', we could encode it using the following method: 1. Each sub-string containing k same characters shou 阅读全文
posted @ 2017-04-10 23:14 limyel 阅读(191) 评论(0) 推荐(0)
摘要:Description The least common multiple (LCM) of a set of positive integers is the smallest positive integer which is divisible by all the numbers in th 阅读全文
posted @ 2017-04-10 21:08 limyel 阅读(135) 评论(0) 推荐(0)
摘要:Description Given two integers n and m, count the number of pairs of integers (a,b) such that 0 < a < b < n and (a^2+b^2 +m)/(ab) is an integer.This p 阅读全文
posted @ 2017-04-10 14:52 limyel 阅读(154) 评论(0) 推荐(0)
摘要:Description In many applications very large integers numbers are required. Some of these applications are using keys for secure transmission of data, 阅读全文
posted @ 2017-04-08 13:36 limyel 阅读(177) 评论(0) 推荐(0)
摘要:Description The digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digit then that d 阅读全文
posted @ 2017-04-07 19:51 limyel 阅读(224) 评论(0) 推荐(0)
摘要:Description The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which flo 阅读全文
posted @ 2017-04-06 22:22 limyel 阅读(163) 评论(0) 推荐(0)
摘要:Description A number sequence is defined as follows:f(1) = 1, f(2) = 1, f(n) = (A * f(n - 1) + B * f(n - 2)) mod 7.Given A, B, and n, you are to calcu 阅读全文
posted @ 2017-04-06 00:22 limyel 阅读(230) 评论(0) 推荐(0)
摘要:Description Contest time again! How excited it is to see balloons floating around. But to tell you a secret, the judges' favorite time is guessing the 阅读全文
posted @ 2017-04-06 00:13 limyel 阅读(141) 评论(0) 推荐(0)
摘要:Description I bet, except Fat Brothers, all of you don’t like strange way to show integers , he is really like this way to showing integers: 1 -> ‘A’ 阅读全文
posted @ 2017-03-26 17:49 limyel 阅读(154) 评论(0) 推荐(0)
摘要:Description 话说现在猪肉价格这么贵,著名的ACBoy 0068 也开始了养猪生活。说来也奇怪,他养的猪一出生第二天开始就能每天中午生一只小猪,而且生下来的竟然都是母猪。不过光生小猪也不行,0068采用了一个很奇特的办法来管理他的养猪场:对于每头刚出生的小猪,在他生下第二头小猪后立马被杀掉 阅读全文
posted @ 2017-03-26 17:25 limyel 阅读(230) 评论(0) 推荐(0)
摘要:Description Give you a lot of positive integers, just to find out how many prime numbers there are. Input There are a lot of cases. In each case, ther 阅读全文
posted @ 2017-03-26 17:21 limyel 阅读(140) 评论(0) 推荐(0)
摘要:Description Calculate S(n).S(n)=13+23 +33 +......+n3 . Input Each line will contain one integer N(1 < n < 1000000000). Process to end of file. Output 阅读全文
posted @ 2017-03-26 14:08 limyel 阅读(209) 评论(0) 推荐(0)
摘要:Description Fat Brother is a famous prophet, One day he get a prediction that disaster will come after X days. He is too nervous that sudden die. Fort 阅读全文
posted @ 2017-03-22 16:24 limyel 阅读(151) 评论(0) 推荐(0)
摘要:Description Fat brother recently studied number theory, him came across a very big problem — minimum does not appear positive integer. Fat brother get 阅读全文
posted @ 2017-03-22 15:44 limyel 阅读(192) 评论(0) 推荐(0)