Untitled

mail@pastecode.io avatar
unknown
plain_text
10 months ago
305 B
2
Indexable
Never
#include <iostream>
using namespace std;
int main()
{
    int a, b, c, d;
    cin >> a >> b;

    int count = 0;

    for (int i = a; i <= b; ++i) {
        c = i / 10;
        c /= 10;
        d = i % 10;
        if (c == d) {
            count++;
        }
    }
    cout << count;
}