C++ Programming Thinking: Brute Force Enumeration

C++ Programming Thinking: Brute Force Enumeration

What is Enumeration AlgorithmThe Enumeration Algorithm, also known as the brute force algorithm, is one of the most intuitive problem-solving methods in computer science. Its core idea is very simple:Systematically traverse all possible solutions, checking each candidate solution one by one to see if it meets the problem’s conditions, until the correct solution is found … Read more

Day 31: Developing Programming Habits in 21 Days – C++ Problem Solving Day 2

Day 31: Developing Programming Habits in 21 Days - C++ Problem Solving Day 2

Learn programming with Lao Ma by “leveling up and fighting monsters”! Involves examination: Computer Society Programming Ability Level Certification (GESP) Activity content: Provides real exam questions of different levels for students to choose and practice Preparation advice: Choose corresponding questions based on your preparation level Additional value: Can be used as preparation training for whitelist … Read more

Innovation Course | Basics of Python (Part 3)

Innovation Course | Basics of Python (Part 3)

Basics Python (Part 3) Dear students, have you ever wondered how computers understand human commands and perform various complex tasks? Today, let us unveil the mystery of programming and step into the fascinating world of the Python programming language! Python is like a “foreign language” for conversing with computers, but it is more concise and … Read more

Fuying Electronics Steps In to Solve Sensor Skeleton Coil Production Challenges

Fuying Electronics Steps In to Solve Sensor Skeleton Coil Production Challenges

Sam, from an industrial manufacturing company in Malaysia, has been sourcing skeleton coils from Fuying Electronics Co., Ltd. for several years, and we often discuss various issues related to skeleton coils. In the second half of last year, they were set to launch a new product that required sensor skeleton coils, but the testing did … Read more

Day 21: Developing Programming Habits in 21 Days: C++ Problem Solving Day 21

Day 21: Developing Programming Habits in 21 Days: C++ Problem Solving Day 21

Learn programming with Lao Ma by “leveling up and fighting monsters”! Involves examination: Computer Society Programming Ability Level Certification (GESP) Activity content: Provides real questions of different levels for students to choose and practice Preparation advice: Choose corresponding questions based on your preparation level Additional value: Can be used as preparation training for whitelist competitions … Read more

C++ Problem P1161: Turning On the Lights

C++ Problem P1161: Turning On the Lights

Click the blue text Follow us P1161 Turning On the Lights Problem Description On an infinitely long road, there is a row of infinitely long streetlights, numbered as . Each light can only be in one of two states: on or off. Pressing the switch of a certain light will change its state. If it … Read more

C++ Level 3 Exercise: Substring Verification (luogu-B2118)

C++ Level 3 Exercise: Substring Verification (luogu-B2118)

This is a Level 3 exercise in GESP, focusing on string manipulation (Knowledge Point 6 in the C++ Level 3 syllabus), Difficulty ★★☆☆☆. luogu-B2118 Substring Verification Problem Requirements Problem Description Input two strings and verify if one string is a substring of the other. Input Format Two lines, each containing one string. Output Format If … Read more

Mastering Recursion in Python Programming

Mastering Recursion in Python Programming

Deeply grasp recursive thinking and unlock the magical world of programming 1. What is Recursion? An Old Story Tells You “Once upon a time, there was a mountain, and on the mountain, there was an old monk telling a story to a young monk, and the story was: once upon a time, there was a … Read more

Day 16: Developing Programming Habits in 21 Days: C++ Problem Solving

Day 16: Developing Programming Habits in 21 Days: C++ Problem Solving

Learn programming with Lao Ma by “leveling up and fighting monsters”! Involves examination: Computer Society Programming Ability Level Certification (GESP) Activity content: Provides real exam questions of different levels for students to practice Preparation advice: Choose corresponding questions based on your preparation level Additional value: Can be used as preparation training for whitelist competitions Day … Read more