Untitled

Anonymous
plain_text
11/13/2022 11:59 AM
276 B
13
Indexable
#include <iostream>
#include <cmath>
using namespace std;
int main() {
	int a, b, c;
	cin >> a >> b;
	c = 0;
	for (int i = a; i < b+1; i++){
		if (i % 10 == i / 10 % 10) c += 1;
	}
	cout << c;
}
Editor is loading...