← All problemsSign in

Aloha

Scube is playing a game where he writes down positive integers having exactly 2 digits. For every pair of adjacent numbers A and B, the last digit of A should be equal to the first digit of B. Count the number of pairs that don't follow this property. Input: - The first line contains a single integer N. - The second line contains the N integers of 2 digit. Output: Print the answer on th

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start