Algorithm competition source code

Source: Internet
Author: User

All files in this article can be downloaded from.

File Function Last revised on
《AlgorithmThe first chapter of the classic competition. Doc    
Algorithm competition entry classicSource code. Rar    
E1.c Calculate the maximum value from three integers.  
E2.c Score level  
E3.c Number of digits in a positive integer  
E4.c 4. Integer sorting  
E5.c Calculate the maximum common divisor and the least common multiple, for version  
E5.1.c This is the while implementation of e5.c.  
E6.c 1! + 2! + 3! +... + 20 !, For version  
E6.1.c This is the while version of e6.c.  
E7.c Ball fall process, for version  
E7.1.c This is the while version of e7.c.  
E8.c Monkey eat peach, for version  
E8.1.c This is the while version of e8.c.  
Chicken and rabbit cage. c P9 example, exhaustive solution, for version  
Chicken and rabbit cage. 1.c This is the while version of "rabbit cage. c ".  
Exercise 2-1, number of digits. c For version  
Exercise 2-1.1, number of digits. c This is the while version of Exercise 2-1, number of digits. C.  
Exercise 2-10 (permutation). c For version  
Exercise 2-10.1 (permutation). c This is the while version of Exercise 2-10 permutation;CodeThe structure is crazy ......  
Exercise 2-2, daffodils. c For version  
Exercise 2-2.1, daffodils. c This is the while version of Exercise 2-2; daffodils. C.  
Exercise 2-3, Han Xin dianbing. c For version  
Exercise 2-3.1, Han Xin dianbing. c This is the while version of Exercise 2-3, Han Xin dianbing. C.  
Exercise 2-4, inverted triangle. c For version  
Exercise 2-4.1, inverted triangle. c This is the while version of Exercise 2-4, inverted triangle. C.  
Exercise 2-5, Statistics (STAT). c For version. This is the version that uses redirection input/output.  
Exercise questions 2-5, Statistics (states.in.txt Input File of "Exercise 2-5, Statistics (STAT). C"  
Exercise questions 2-5, Statistics (states.out.txt Output file of "Exercise 2-5, Statistics (STAT). C"  
Exercise 2-5, variant of statistics Exercise 2-5, Statistics. C after the question is modified ". This is the version entered using the keyboard.  
Exercise 2-5.1, statistical variant. c This is the version that uses redirection input/output.  
Exercise Question 2-variant of Statistics .in.txt Input File of "Exercise 2-5.1, variant of statistics. C"  
Exercise Question 2-variant of Statistics .out.txt Output file of "Exercise 2-5.1, variant of statistics. C"  
Exercise 2-6, harmonic series. c For version  
Exercise 2-6.1, harmonic series. c This is the while version of Exercise 2-6, harmonic series.  
Exercise 2-7, approximate calculation. c For version  
Exercise 2-7.1, approximate calculation. c This is the while version of "Exercise 2-7, approximate calculation ".  
Exercise 2-8, subsequence and. c For version  
Exercise 2-8.1, subsequence and. c This is the while version of "Exercise 2-8, child sequence sum ".  
Exercise 2-9, fractional decimal. c For version  
Exercise 2-9.1, fractional decimal. c This is the while version of "Exercise 2-9, fractional decimal ".  
Section 1: arithmetic expressions \ example1-1.c    
Section 1: arithmetic expressions \ example1-2a.c    
Section 1: arithmetic expressions \ example1-2b.c    
Section 1: arithmetic expressions \ example1-2c.c    
Section 2: variables and their inputs \ example2-1.c    
Section 2: variables and their inputs \ example2-2.c    
2.4.1. Example 1.c P28, 2.4.1, output skills, book example  
2.4.1. Example 1A. c P28, 2.4.1, output skills, and improvement of book Samples  
2.4.1. Example 1b. c P28, 2.4.1, an improvement in output skills and book Samples  
2.4.2. Example 1.c P28, 2.4.2, floating point trap, book example  
2.4.3. Example 1.c P28, 2.4.3, demonstrate 64-bit integer usage 2010-12-13
2.4.3. Example 1b. c 2.4.3. Visual C ++ 6.0 for example 1.c 2010-12-17
Exercise 3-1, score statistics (STAT) A. C P50, exercise 3-1 Task 1. Assume that the input data cannot exceed 10000. 2010-12-21
Exercise 3-1, score statistics (STAT) A. In Input data file for exercise 3-1, score statistics (STAT) A.C. The file is small and only for testing. 2010-12-21
Exercise 3-1, score statistics (STAT) B .C P50, exercise 3-1 Task 2. Assume that the input data cannot exceed 10000. 2010-12-24
Exercise 3-1, score statistics (STAT) B. In Input data file for exercise 3-1, score statistics (STAT) B .C. The file is small and only for testing 2010-12-2
Exercise 3-2, Word Length (Word). c Solution to exercise 3-2 2010-12-26
Exercise 3-3, product. c Solution to exercise 3-3 2010-12-26
Exercise 3-4, Calculator. c Solution for exercise 3-4 2011-1-1
Exercise 3-5, rotate. c Solutions for exercise 3-5 2011-1-7
Exercise 3-6, hexadecimal conversion 1 (base1). c Solutions for exercises 3-6 2011-1-7
Exercise 3-7, hexadecimal conversion 2 (base2). c Solution to exercise 3-7 2011-1-7
Question 3-8: keyboard.pdf Exercise 3-8 problem solving policy description, PDF document 2011-1-8
Exercise 3-8, mobile keyboard (keyboard). c Solution to exercise 3-8 2011-1-8

Example 3-2: Snake-type input: 1.png

Example 3-2: control flow diagram of a snake-shaped input number 1.c

2011-2-2
Example 3-2: Snake-shaped input. c Example 3-2: The number of snake-shaped data, another solution of the book example 2011-2-2
Example 3-1 open lighting question .png Example 3-1: Open the light. c control flow diagram 2011-2-2
Example 3-1: turn on the light. c Example 3-1: Turn on the light, and another solution to the example in books 2011-2-2
Algorithm competition Exercise 3, source code .rar Programming questions in algorithm competition Exercise 3, source code 2011-2-19
Algorithm competition Exercise 4, source code .rar Algorithm competition Exercise 4 programming questions, source code: hollow diamond, interval statistics 2, taotao apple picking 2011-2-26
Algorithm competition exercise 5, source code .rar Algorithm competition exercise 5 programming questions, source code: Another harmonic level, out-of-school tree 2011-3-6
6. Source Code. rar Algorithm competition Exercise 6 programming questions, source code: Clear Random Number 2011-3-13
Sample Code and teaching example. rar Noip2005 universal group semi-finals 3rd questions, medicine collection: source code, with two examples of teaching code 2011-3-17
Algorithm competition Exercise 7, source code .rar Noip2007 universal group semi-finals 1st questions, scholarship, source code and test data 2011-3-19

Algorithm competition Exercise 8 source code .rar

Question 1 of noip2008 semi-finals popularity group, ISBN book number, source code and test data

2011-4-8

9, source code .rar

The first question in the noip2009 semi-finals popularity group: polynomial; source code 2011-5-1
Cowshed echo Demonstrate string processing skills, especially the use of strncpy () 2011-7-11
Cantor number table It is similar to the "Snake-filled number" 2011-7-11
Length of the rope, teaching document .rar A rope wraps several cylinders on the plane and forms a convex polygon. Evaluate the length of the rope. Contains the question description, source code, and problem-solving analysis. 2011-7-12
Ackmann function, Recursive Implementation. c

Fuzhou 3rd, C ++ProgramDesign (III), P20, 3rd questions, ackmann functions, recursive algorithms. (Instructor ►skydrive ►algorithm competition ►source code ►ackmann function, Recursive Implementation. c)

2011-7-21
Monkeys eat peaches and implement recursion. c

Fuzhou No. 3 middle school, C ++ programming (III), P20, 6th questions, monkeys eating peaches, recursive algorithms. (Instructor ►skydrive ►algorithm competition ►source code ►monkey eat peach, Recursive Implementation. c)

2011-7-21
Returns the string in reverse order and recursively implements. C.

Fuzhou No. 3 middle school, C ++ programming (III), P20, 1st questions, string reverse order, recursive algorithm. (Instructor ►skydrive ►algorithm competition ►source code ►string reverse order, Recursive Implementation. c)

2011-7-21
noip 2009 spy. C latent, noip2009 semi-finals improve group's first question, evaluation site:
http://tyvj.cpwz.cn/Problem_Show.asp? Id = 1110
2011-12-20

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.