CSA

Problem Of The Day

💻 Question:

George and Accommodation EASY

Input Format:

n rooms, p_i (occupied), q_i (capacity).

Output Format:

Rooms with at least 2 free spaces.

Example:

Input:
3
1 1
2 2
3 3

Output:
0

Explanation:

TC1: All rooms full.