dfkugib8nivogfkdewjrfug9

枫原万叶  •  1年前


include

using namespace std;

int main() {

int l, r, c, d, e = 0 ;
cin >> l >> r;
while (l <= r) {
	for (c = l; c > 0; c = c / 10) {
		if (c % 10 == 2) {
			e++;
		}
	}
	l++;
}
cout << e;
return 0;

}


评论:

请先登录,才能进行评论