随笔分类 - 水
摘要:Problem Description 下面是512汶川大地震部分受灾学校伤亡情况(惨痛!!)1、 四川省都江堰市 聚源中学伤亡情况:遇难学生人数(含失踪)320详细说明: 一栋教学楼被震垮,该楼18个班420多名学生被埋,截至目前仅有不到100名获救。2、 四川省绵阳市 北川县北川中学伤亡情况:遇
阅读全文
摘要:Problem Description 在2×n的一个长方形方格中,用一个1× 2的骨牌铺满方格,输入n ,输出铺放方案的总数.例如n=3时,为2× 3方格,骨牌的铺放方案有三种,如下图: Input 输入数据由多行组成,每行包含一个整数n,表示该测试实例的长方形方格的规格是2×n (0<n<=50
阅读全文
摘要:Description 甜甜从小就喜欢画图画,最近他买了一支智能画笔,由于刚刚接触,所以甜甜只会用它来画直线,于是他就在平面直角坐标系中画出如下的图形: 甜甜的好朋友蜜蜜发现上面的图还是有点规则的,于是他问甜甜:在你画的图中,我给你两个点,请你算一算连接两点的折线长度(即沿折线走的路线长度)吧。 I
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要:Description In many applications very large integers numbers are required. Some of these applications are using keys for secure transmission of data,
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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’
阅读全文
摘要:Description 话说现在猪肉价格这么贵,著名的ACBoy 0068 也开始了养猪生活。说来也奇怪,他养的猪一出生第二天开始就能每天中午生一只小猪,而且生下来的竟然都是母猪。不过光生小猪也不行,0068采用了一个很奇特的办法来管理他的养猪场:对于每头刚出生的小猪,在他生下第二头小猪后立马被杀掉
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要:Description Fat brother recently studied number theory, him came across a very big problem — minimum does not appear positive integer. Fat brother get
阅读全文

浙公网安备 33010602011771号