- 博客(23)
- 资源 (9)
- 收藏
- 关注
原创 Round and Round We Go
DescriptionProblemA cyclic number is an integer n digits in length which, when multiplied by any integer from 1 to n, yields a ��cycle�� of the digits of the original number. That is, if
2014-03-30 16:23:56 1574
原创 Arne Saknussemm
DescriptionFollowing the account of Jules Verne, a scrambled message written by the middle age alchemist Arne Saknussemm, and deciphered by professor Lidenbrock, started the incredible travel to t
2014-03-30 15:12:47 679
原创 WERTYU
DescriptionA 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
2014-03-30 09:04:46 935
原创 Automatic Editing
DescriptionText-processing tools like awk and sed allow you to automatically perform a sequence of editing operations based on a script. For this problem we consider the specific case in which we wa
2014-03-29 20:35:48 782
原创 Reverse Text
DescriptionIn most languages, text is written from left to right. However, there are other languages where text is read and written from right to left. As a first step towards a program that automat
2014-03-29 18:58:14 557
原创 Word Reversal
#include #include using namespace std;int main(){ int n,t; cin>>t; while(t--) { char c[1000]; cin>>n; cin.get();//去回车 while(n--) { gets(c); int len=strlen(c); for(int
2014-03-29 18:14:55 1003
原创 HTML
DescriptionIf you ever tried to read a html document on a Macintosh, you know how hard it is if no Netscape is installed.Now, who can forget to install a HTML browser? This is very easy becaus
2014-03-26 11:52:35 623
原创 Who is the Smartest Man
DescriptionCao Cao is very pround of his newly finished book named "The Book of Mengde". He thinks the book contains all the wisdom of the world. But in order to prove this, he need to prove
2014-03-25 23:45:17 785
原创 Conic Section
The conic sections are the nondegenerate curves generated by the intersections of a plane with one or two nappes of a cone. For a plane perpendicular to the axis of the cone, a circle is produced. For
2014-03-25 23:39:18 652
原创 Quicksu
DescriptionA checksum is an algorithm that scans a packet of data and returns a single number. The idea is that if the packet is changed, the checksum will also change, so checksums are often used
2014-03-25 23:36:09 535
原创 Ordinal Numbers
DescriptionOrdinal numbers refer to a position in a series. Common ordinals include zeroth, first, second, third, fourth and so on. Ordinals are not often written in words, they are written using di
2014-03-25 11:47:50 899
原创 Binary Number
DescriptionFor 2 non-negative integers x and y, f(x, y) is defined as the number of different bits in the binary format ofx and y. For example, f(2, 3)=1, f(0, 3)=2, f(5, 10)=4. Now give
2014-03-25 11:28:03 1986
原创 Wu XING
DescriptionIntroductionThe Wu Xing, or the Five Movements, Five Phases or Five Steps/Stages, are chiefly an ancient mnemonic device, in many traditional Chinese fields.The doctrine of five p
2014-03-24 21:34:49 1547
原创 Somali Pirates
DescriptionIt is said that the famous Somali Pirates hate digits. So their QQ passwords never contain any digit. Given some lines of candidate passwords, you are asked to delete all the digi
2014-03-24 20:54:51 686
原创 Clock
DescriptionIt is known that, in one day the hour hand and the minute hand of a clock meet 22 times. But in one day, how long is the time that the angle between the hour hand and the minute h
2014-03-24 20:07:19 591
原创 ICPC Score Totalizer Software
DescriptionThe International Clown and Pierrot Competition (ICPC), is one of the most distinguished and also the most popular events on earth in the show business.One of the unique features of
2014-03-24 18:13:05 556
原创 Equal Total Scores
DescriptionTaro and Hanako have numbers of cards in their hands. Each of the cards has a score on it. Taro and Hanako wish to make the total scores of their cards equal by exchanging one card
2014-03-24 16:32:02 1054
原创 Ambiguous permutations
DescriptionSome programming contest problems are really tricky: not only do they require a different output format from what you might have expected, but also the sample output does not show t
2014-03-23 19:20:48 625
原创 No Brainer
DescriptionZombies love to eat brains. Yum. InputThe first line contains a single integer n indicating the number of data sets.The following n lines each represent a data set. Ea
2014-03-23 19:14:23 548
原创 HangOver
DescriptionHow far can you make a stack of cards overhang a table? If you have one card, you can create a maximum overhang of half a card length. (We're assuming that the cards must be perpe
2014-03-23 19:01:28 538
原创 Gridland
DescriptionBackgroundFor years, computer scientists have been trying to find efficient solutions to different computing problems. For some of them efficient algorithms are already available,
2014-03-23 18:53:16 739
C语言小学数学学习系统
2013-10-19
C语言班级管理
2013-10-19
C语言括号匹配
2013-10-19
C语言分解因数
2013-10-19
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人