Zhengzhou University of Light Industry OJ collection (C language)


The code is for reference only, it was written by the author when he first learned C language


ZZULIOJ platform: http://acm.zzuli.edu.cn/


When learning a programming language, the most taboo is to have a master but a master.
After copying, don’t stick it directly into the compiler, but type it by yourself. What you copy should not be the code, but the code idea. If you copy more ideas, you will write it yourself, but if you copy more code, you can learn everything. Won't

Reference Code:

0. ZZULIOJ:1000: Start C language from today
1. ZZULIOJ:1001: Integer a+b
2. ZZULIOJ:1002: Simple polynomial evaluation
3. ZZULIOJ:1003: Four arithmetic operations of two integers
4. ZZULIOJ:1004 : Digit separation of three digits
5. ZZULIOJ:1005: Integer power
6. ZZULIOJ:1006: Find the sum of arithmetic progression
7. ZZULIOJ:1007: Chicken and rabbit in the same cage
8. ZZULIOJ:1008: US dollars and RMB
9. ZZULIOJ: 1009: Find the average score10
. ZZULIOJ:1010: Find the circumference and area of ​​a circle11.
ZZULIOJ :1011: Find the surface area of ​​a cylinder12
. ZZULIOJ:1012: Find the absolute value13.
ZZULIOJ :1013: Find the distance between two points14
. ZZULIOJ :1014: Calculate the area of ​​a triangle15
. ZZULIOJ:1015: Calculate the time interval16
. ZZULIOJ:1016: Bank interest rate17
.ZZULIOJ:1017: Judging the number of positive integers
18. ZZULIOJ:1018: Odd and even numbers
19. ZZULIOJ:1019: Park tickets
20. ZZULIOJ:1020: Sorting two integers
21. ZZULIOJ:1021: The maximum value of three integers
22. ZZULIOJ: 1022: Three integer sorting
23. ZZULIOJ: 1023: Case conversion
24. ZZULIOJ: 1024: Calculation of letter serial number
25. ZZULIOJ: 1025: Maximum character
26. ZZULIOJ: 1026: Character type judgment
27. ZZULIOJ: 1027: Judging the number of daffodils
28. ZZULIOJ:1028: I love leap year!
29. ZZULIOJ:1029: Triangle Judgment30
. ZZULIOJ:1030: Judgment of Right Triangle31
. ZZULIOJ:1031: Which Quadrant the Judgment Point is
in32 . ZZULIOJ:1032: Employee Salary33 .

ZZULIOJ:1034: Summer promotion35 .
ZZULIOJ :1035: Segmented function
evaluation36 . ZZULIOJ:1036: How many days in a certain year and month37. ZZULIOJ: 1037: Four arithmetic operations38 . ZZULIOJ:1038: Maximum absolute value39 . ZZULIOJ :1039: Sum of n numbers 40. ZZULIOJ:1040: Sum of number sequence 1 41. ZZULIOJ:1041: Sum of number sequence 2 42. ZZULIOJ:1042: Sum of number sequence 3 43. ZZULIOJ:1043: Maximum value 44. ZZULIOJ: 1044: Failure Rate45 . ZZULIOJ:1045: Numerical Statistics46 . ZZULIOJ:1046: Product of Odd Numbers47. ZZULIOJ:1047: Logarithmic Table48. ZZULIOJ : 1048: Factorial Table49 . ZZULIOJ:1049: Sum of Squares and Sum of Cubes 50. ZZULIOJ:1050: cumulative sum of factorials














51. ZZULIOJ:1051: The sum of square roots
52. ZZULIOJ:1052: The sum of the sequence of numbers 4
53. ZZULIOJ:1053: The sine function
54. ZZULIOJ:1054: Monkeys eat peaches
55. ZZULIOJ:1055: Rabbit breeding problems
56. ZZULIOJ:1056 : Lucky number
57. ZZULIOJ:1057: Prime number determination
58. ZZULIOJ:1058: Solve inequality
59. ZZULIOJ:1059: Highest score
60. ZZULIOJ:1060: Reverse sequence number
61. ZZULIOJ:1061: Sequential output of digits
62. ZZULIOJ:1062 : The greatest common divisor
63. ZZULIOJ:1063: The greatest common denominator and the least common multiple
64. ZZULIOJ:1064: Encrypted characters
65. ZZULIOJ:1065: The number of statistical characters
66. ZZULIOJ:1066: Character classification statistics
67. ZZULIOJ:1067 : Problematic odometer
68.ZZULIOJ:1068: Binary number
69. ZZULIOJ:1069: Learning from classmate Z70
. ZZULIOJ:1070: The position of the car71.
ZZULIOJ :1071: Decomposing the quality factor72
. ZZULIOJ:1072: Frog climbing the
well73. ZZULIOJ:1073: Let’s talk about chickens and rabbits in the same cage again
74. ZZULIOJ:1074: Buying a hundred chickens for a hundred dollars75.
ZZULIOJ :1075: Statistics of the number of people at a dinner party76. ZZULIOJ:1076: Three-digit solution77 .
ZZULIOJ :1077: Hollow diamond78 . ZZULIOJ:1078 : a+b (multiple instance test 1) 79. ZZULIOJ:1079: a+b (multiple instance test 2) 80. ZZULIOJ:1080: a+b (multiple instance test 3) 81. ZZULIOJ:1081: Find n numbers Sum (Multiple Instance Test) 82. ZZULIOJ:1082: Knock 7 (Multiple Instance Test) 83. ZZULIOJ:1083: Numerical Statistics (Multiple Instance Test) 84. ZZULIOJ:1084: Calculate the distance between two points (Multiple Instance Test)








85. ZZULIOJ:1085: Find the product of odd numbers (multiple instance test)
86. ZZULIOJ:1086: sort ASCII codes (multiple instance test)
87. ZZULIOJ:1087: Get the date of birth (multiple instance test)
88. ZZULIOJ:1088: Mobile phone Cornet
89. ZZULIOJ:1089: The highest digit of factorial
90. ZZULIOJ:1090: Integer power (multiple instance test)
91. ZZULIOJ:1091: Anecdotes about childhood (multiple instance test)
92. ZZULIOJ:1092: Prime number table ( Function Topic)
93. ZZULIOJ:1093: Verifying Goldbach’s Conjecture (Function Topic)
94. ZZULIOJ:1094: Statistical Vowels (Function Topic)
95. ZZULIOJ:1095: Time Interval (Function Topic)
96. ZZULIOJ:1096: Narcissus Flower Number (Function Topic)
97. ZZULIOJ:1097: Calculating Average Grades (Function Topic)
98. ZZULIOJ:1098: Composite Function Evaluation (Function Topic)
99. ZZULIOJ:1099: Kakutani Conjecture (Multiple Instance Test)
100.ZZULIOJ:1100: Find the number of combinations (function topic)


101. ZZULIOJ:1101: Numbers in Reverse Order (Function Topic)
102. ZZULIOJ:1102: Calculation of Train Ticket Refund Fee (Function Topic)
103. ZZULIOJ:1103: Average Credit Points (Function Topic)
104. ZZULIOJ:1104: Factor Sum (Function topic)
105. ZZULIOJ:1105: Judging friendly number pairs (Function topic)
106. ZZULIOJ:1106: Palindrome number (Function topic)
107. ZZULIOJ:1107: Palindrome conjecture (Function topic)
108. ZZULIOJ:1108 : Print Number Graph (Function Topic)
109. ZZULIOJ:1109: Number Root (Function Topic)
110. ZZULIOJ:1110: Nearest Common Ancestor (Function Topic)
111. ZZULIOJ:1111: Reverse Order Output of Multiple Integers (Function Topic)
112 . ZZULIOJ:1112: Base conversion (function topic)
113. ZZULIOJ:1113: Statistics of the number of recursive calls (function topic)
114. ZZULIOJ:1114: Reverse order
115. ZZULIOJ:1115: Array minimum value
116.ZZULIOJ:1116: Delete element
117. ZZULIOJ:1117: Find array element
118. ZZULIOJ:1118: Ordered array
119. ZZULIOJ:1119: Ordered array
120. ZZULIOJ:1120: Most value exchange
121. ZZULIOJ:1121: Elevator
122 . ZZULIOJ:1122: Xiao Ming's investigation assignment123 .
ZZULIOJ :1123:Best alumni124. ZZULIOJ:1124: Merge of two ordered arrays125. ZZULIOJ
: 1125: Judgment of upper triangular matrix126 . ZZULIOJ:126:Boolean matrix Parity 127. ZZULIOJ:127:Matrix Product 128. ZZULIOJ:128:Course Average Score 129. ZZULIOJ:129:Day Day 130. ZZULIOJ:130:Yang Hui Triangle 131. ZZULIOJ:131:Most Common Characters 132. ZZULIOJ:132 :Number character statistics 133.








ZZULIOJ:133: counting the number of words
134. ZZULIOJ:134: string conversion
135. ZZULIOJ:135: calculating the price of vegetables
136. ZZULIOJ:136: capitalizing the first letter
137. ZZULIOJ:137: finding the largest element
138. ZZULIOJ:138 : Legal identifier of C language
139. ZZULIOJ:139: Output the shortest string
140. ZZULIOJ:140: Multi-instance of the nth digit after the decimal point
141. ZZULIOJ:141: Hexadecimal conversion
142. ZZULIOJ:142: The size of the binary number
143. ZZULIOJ:143: Maximum value - multiple bases
144. ZZULIOJ:144: multiple bases
145. ZZULIOJ:145: Problematic odometer (2)
146. Eat candy
147. Find sub-arrays
148. Combine three digits One
149. Combining two of three digits
150. Counting how many integers
151. Large integer addition
152. Binary search
153.Simple version of the longest sequence
154. The tree outside the school gate
155. String comparison with many instances
156. Singular to plural
157. Consecutive n 1
158. Sorting again (pointer topic)
159. The largest two numbers (pointer topic)
160. Maximum value of matrix (pointer topic)
161. String length (pointer topic)
162. Cyclic movement (pointer topic)
163. Affinity string (string)
164. String encryption
165. Fractional part of real number (pointer topic) )

None of the above codes have comments. When writing code yourself, you must write comments. Don’t think it’s troublesome to write comments. Only by writing comments can you deepen your understanding of the code and make it easier for others
to read.
When you help him check his mistakes, there will be an urge to hammer him

Guess you like

Origin blog.csdn.net/qq_61228493/article/details/126045299