简答题 偏难
#22622

# include <iostream> using namespace std ; int main ( ) { int a , b , i , tot ,…

#include <iostream>
using namespace std;

int main() {
	int a, b, i, tot, c1, c2;
	cin >> a >> b;
	tot = 0;
	for (i = a; i <= b; i++)
	{
		c1 = i / 10;
		c2 = i % 10;
		if ((c1 + c2) % 3 == 0)
			tot++;
	}
	cout << tot << endl;
	return 0;
}

输入:7 31

输出:_________

未登录也能判分,登录后才会记录
答案与解析
正确答案:<div> <p>8</p></div>
这道题暂未补解析。