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

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

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

Complete Collection of Programming Sample Questions for ICMC-C++ Junior Group

Complete Collection of Programming Sample Questions for ICMC-C++ Junior Group

Complete Collection of Programming Sample Questions for ICMC-C++ Junior Group Sample Paper 1 1. Check for Uppercase Letters DescriptionInput a character and determine whether it is an uppercase English letter, i.e., one of A-Z. InputA single character. OutputIf it is an uppercase English letter, output YES; otherwise, output NO. Sample Input K Sample Output YES … Read more

Common Misconceptions in Teaching: Why Can C++ Strings Use Triple Quotes?

Parents and competitive programming students are encouraged to follow our public account, which focuses on algorithmic thinking training and competitive programming education. This will help parents avoid pitfalls and assist students in effectively improving their competition scores. đź’¬ 1. A “Magical” Discovery: Can C++ Strings Use Triple Quotes? Recently, I encountered a student who said— … Read more

Learning C++ Programming from Scratch, Day 425: 1193 – Angles II; Question Bank Answers; Third Method

Learning C++ Programming from Scratch, Day 425: 1193 - Angles II; Question Bank Answers; Third Method

1193 – Angles II Development Approach Description The purpose of this program is to output a pattern related to a two-dimensional array in a specific format. Below is a detailed development approach: Include Header Files and Namespace: <span>#include <bits/stdc++.h></span>: This is a “universal header file” that includes almost all standard library header files, commonly used … Read more

Day 08: GESP Level 1 – Time Planning

Day 08: GESP Level 1 - Time Planning

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 for practice Preparation advice: Choose corresponding questions based on your preparation level Additional value: Can be used as preparation training for whitelist … Read more

Practical Simulation Problems in C++: From Problem Description to AC Code

Practical Simulation Problems in C++: From Problem Description to AC Code

Informatics Olympiad National Youth Informatics Olympiad Series Competition C++Practical Simulation Problems From Problem Description to AC Code The core ability of award-winning participants in the Informatics Olympiad: Transforming problem descriptions into AC code within 10 minutes! This complete problem-solving guide for GESP Level 1 simulation problems will help you master the underlying thinking patterns of … Read more

C++ Daily Challenge Day 681

C++ Daily Challenge Day 681

Today is the 681th day of learning programming with the cool rain! Hello, everyone, this is the question from GESP. day681 GESP December 2023 Level 2 Question 2 Answer: START OF SPRING Solution #include <iostream> using namespace std; // Cool rain 666 int main() { int n, i, j; scanf("%d", &n); for(i=1; i<=(n+1)/2-1; i++) { … Read more

The 16th Blue Bridge Cup C++ Provincial Competition Questions for Youth Group

The 16th Blue Bridge Cup C++ Provincial Competition Questions for Youth Group

Question 1 Problem: Run the following program, the output result is (C). Analysis: The first condition of the OR operation is true, and the first condition of the AND operation is false, so there is no need to calculate the next operation! Code: int func(int y) { y -=5; cout << “X”; return 0; }int … Read more

The Difference Between i++ and ++i in C++ Loops: How Competitive Programmers Write Faster and More Elegantly

The Difference Between i++ and ++i in C++ Loops: How Competitive Programmers Write Faster and More Elegantly

[Image] Click the blue text to follow us. In C++ programming, we often write loops like this: for (int i = 0; i < n; i++) { // do something} But have you ever wondered if there is a difference between i++ and ++i? Which method is more efficient in terms of performance? Will it … Read more

2025 16th Blue Bridge Cup Provincial C++ Preliminary Exam Questions

2025 16th Blue Bridge Cup Provincial C++ Preliminary Exam Questions

1. Multiple Choice Questions Question 1 Problem: Run the following program, the output result is () . Code: int func(int y){y -= 5;cout &lt;&lt;"x";return 0;}int main(){int x=10,y=5;if(x&gt;y || func(y))cout&lt;&lt; y;return 0;} A. XO B. X5 C. 5 D. 0 Question 2 Problem: Run the following program, the output result is () . Code: int i=1,t=0;while(i … Read more