Secondary informatics training · Block-based solving

Secondary Informatics Practice
(C++/Python)

Break algorithm problems into workable code blocks. Practise choosing, ordering, and debugging until the real solving process becomes natural.

Signal Lanterns (DP Training)Status: 100/100
Your algorithm blocks
1. Read input N
2. State transitionActive
3. Initialise dp[0], dp[1]
4. Print dp[N]
// {} C++ live preview

vector<int> dp(n + 1);

dp[i] = dp[i - 1] + dp[i - 2];

cout << dp[n] << '\n';

Logic line synced

Do not just read solutions. Practise the solving process.

Three core steps help students think about algorithms with structure.

01

Understand the story

Original statements introduce variables and rules through a concrete setting, then lead into the model.

02

Build the algorithm

Choose key steps from mixed blocks and arrange input, processing, and output into a rigorous solution.

03

Review mistakes

After submission, feedback points to missing steps, distractors, or ordering errors so students can revise with purpose.

Start Challenging