Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
464 B
1
Indexable
Never
// подготовка к кр
#include <iostream>
using namespace std;
int main()
{
    int a, b;
    cin >> a >> b;
    int i = 0;
    int length = 0;
    int rashodnic = a;
    while (rashodnic != 0)
    {
        rashodnic %= 10;
        length += 1;
    }
    while (a < b)
    {
        a += 1;
        if (a % (10^(length - 1)) == a % (10^(length - 2)) )
        {
            i += 1;
        }
    }
    cout << i;
    return 0;
}