Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
305 B
1
Indexable
Never
#include <iostream>
#include <cmath>
using namespace std;

int main()
{
	int a, b, n,c;
	cin >> a >> b;
	c = a % 100;
	n = 0;
	while (a != b) {
		
		if (a % 10 == (c / 10)) {
			n += 1;
			a += 1;
		}
		else {
			a += 1;
		}
		
	}
	if (b%100==0) {
		n += 1;
	}
	cout << n;


}