返回小组 开始 2026-05-21 13:40:00

北清初二期末测试

结束 2026-05-21 17:20:00
Contest is over.
当前 2026-05-23 17:49:09

wdfbh

include

using namespace std;

int main() {

long long t, n;
cin >> t;
while (t--) {
	cin >> n;
	int cnt = 0;
	while (n) {
		int a = n % 10;
		n = n / 10;
		if (a >= 5)
			cnt++;
		cnt = cnt + a % 5;
	}
	cout << cnt << endl;

}
return 0;

}


1231231231g  •  2天前

比赛已结束。