![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
算法笔记实践记录第三章
DemonInside
仅仅是个未经世事的学生而已
展开
-
A1001. A+B Format (20)
A1001Calculate a + b and output the sum in standard format -- that is, the digits must be separated into groups of three by commas (unless there are less than four digits).InputEach input fi原创 2018-01-28 23:55:36 · 175 阅读 · 0 评论 -
A1046. Shortest Distance (20)
A1046The task is really simple: given N exits on a highway which forms a simple cycle, you are supposed to tell the shortest distance between any pair of exits.Input Specification:Each input原创 2018-01-29 00:11:09 · 167 阅读 · 0 评论 -
A1042. Shuffling Machine (20)
A1042The machine shuffles a deck of 54 cards according to a given random order and repeats for a given number of times. It is assumed that the initial status of a card deck is in the following ord原创 2018-01-29 00:05:20 · 168 阅读 · 0 评论 -
A1031. Hello World for U (20)
A1031Given any string of N (>=5) characters, you are asked to form the characters into the shape of U. For example, "helloworld" can be printed as:h de ll rlowoThat is, the characters原创 2018-01-29 00:02:58 · 355 阅读 · 0 评论 -
A1019. General Palindromic Number (20)
A1019A number that will be the same when it is written forwards or backwards is known as a Palindromic Number. For example, 1234321 is a palindromic number. All single digit numbers are palindro原创 2018-01-29 00:01:17 · 164 阅读 · 0 评论 -
A1009. Product of Polynomials (25)
A1009This time, you are supposed to find A*B where A and B are two polynomials.Input Specification:Each input file contains one test case. Each case occupies 2 lines, and each line contains原创 2018-01-29 00:00:01 · 181 阅读 · 0 评论 -
A1006. Sign In and Sign Out (25)
A1006At the beginning of every day, the first person who signs in the computer room will unlock the door, and the last one who signs out will lock the door. Given the records of signing in's and原创 2018-01-28 23:58:40 · 172 阅读 · 0 评论 -
A1002. A+B for Polynomials (25)
A1002This time, you are supposed to find A+B where A and B are two polynomials.InputEach input file contains one test case. Each case occupies 2 lines, and each line contains the information原创 2018-01-28 23:57:18 · 290 阅读 · 0 评论 -
A1082. Read Number in Chinese (25)
A1082题目描述如下:Given an integer with no more than 9 digits, you are supposed to read it in the traditional Chinese way. Output "Fu" first if it is negative. For example, -123456789 is read as "Fu yi Yi e...原创 2018-01-28 21:39:36 · 312 阅读 · 0 评论