Untitled

 avatar
user_7248805
plain_text
2 years ago
299 B
0
Indexable
Never
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
	int A, B, Z, V;
	cin >> A >> B;
	V= A % 100;
	Z = 0;				
	while (A != B) {
		if (A % 10 == (V / 10)) {
			Z += 1;
			A += 1;
		}
		else {
			A += 1;
		}
	}
	if (B % 100 == 0) {
		Z += 1;
	}
	cout << Z;
}