11172 - Relational Operator

摘要: Some operators checks about the relationship between two values and these operators are called relational operators. Given two numerical values your job is just to find out the relationship between them that is (i) First one is greater than the second (ii) First one is less than the second or (iii) 阅读全文
posted @ 2013-02-07 10:55 喂喂还债啦 阅读(250) 评论(0) 推荐(0) 编辑

10783 - Odd Sum

摘要: Given a range [a, b], you are to find the summation of all the odd integers in this range. For example, the summation of all the odd integers in the range [3, 9] is3 + 5 + 7 + 9 = 24.InputThere can be at multiple test cases. The first line of input gives you the number of test cases, T (1T100). Then 阅读全文
posted @ 2013-02-06 12:35 喂喂还债啦 阅读(881) 评论(0) 推荐(0) 编辑

10696 - f91

摘要: BackgroundMcCarthy is a famous theorician of computer science. In his work, he defined a recursive function, called f91, that takes as input a positive integer N and returns a positive integer defined as follows:If N ≤ 100, then f91(N) = f91(f91(N+11));If N ≥ 101, then f91(N) = N-10.The ProblemWrite 阅读全文
posted @ 2013-02-06 12:20 喂喂还债啦 阅读(385) 评论(0) 推荐(0) 编辑

488 - Triangle Wave

摘要: In this problem you are to generate a triangular wave form according to a specified pair of Amplitude and Frequency.Input and OutputThe input begins with a single positive integer on a line by itself indicating the number of the cases following, each of them as described below. This line is followed 阅读全文
posted @ 2013-02-06 11:04 喂喂还债啦 阅读(268) 评论(0) 推荐(0) 编辑

10370 - Above Average

摘要: It is said that 90% of frosh expect to be above average in their class. You are to provide a reality check.The first line of standard input contains an integer C, the number of test cases. C data sets follow. Each data set begins with an integer, N, the number of people in the class (1 <= N <= 阅读全文
posted @ 2013-02-05 20:09 喂喂还债啦 阅读(445) 评论(0) 推荐(0) 编辑

10082 - WERTYU

摘要: A common typing error is to place the hands on the keyboard one row to the right of the correct position. So "Q" is typed as "W" and "J" is typed as "K" and so on. You are to decode a message typed in this manner.Input consists of several lines of text. Each l 阅读全文
posted @ 2013-02-05 15:51 喂喂还债啦 阅读(300) 评论(0) 推荐(0) 编辑

10222 - Decode the Mad man

摘要: The ProblemOnce in BUET, an old professor had gone completely mad. He started talking with some peculiar words. Nobody could realize his speech and lectures. Finally the BUET authority fall in great trouble. There was no way left to keep that man working in university. Suddenly a student (definitely 阅读全文
posted @ 2013-02-05 15:34 喂喂还债啦 阅读(912) 评论(0) 推荐(0) 编辑

913 - Joana and the Odd Numbers

摘要: Joana loves playing with odd numbers. In the other day, she started writing, in each line, an odd number of odd numbers. It looked as follows: 1 3 5 7 9 11 13 15 1719 21 23 25 27 29 31...On a certain line Joana wrote 55 odd numbers. Can you discover the sum of the last three numbers written in tha.. 阅读全文
posted @ 2013-02-05 10:22 喂喂还债啦 阅读(479) 评论(0) 推荐(0) 编辑

591 - Box of Bricks

摘要: Little Bob likes playing with his box of bricks. He puts the bricks one upon another and builds stacks of different height. ``Look, I've built a wall!'', he tells his older sister Alice. ``Nah, you should make all stacks the same height. Then you would have a real wall.'', she re 阅读全文
posted @ 2013-02-05 09:52 喂喂还债啦 阅读(1730) 评论(0) 推荐(0) 编辑

272 - TEX Quotes

摘要: TeX is a typesetting language developed by Donald Knuth. It takes source text together with a few typesetting instructions and produces, one hopes, a beautiful document. Beautiful documents use `` and " to delimit quotations, rather than the mundane " which is what is provided by most keyb 阅读全文
posted @ 2013-02-04 20:22 喂喂还债啦 阅读(1052) 评论(0) 推荐(0) 编辑