题解
2024-01-21 16:55:03
发布于:广东
41阅读
0回复
0点赞
坑人
报错
#include<bits/stdc++.h>
using namespace std;
int main()
{
	int i=1,t,cnt_0=0,cnt_1=0;
	while(true)
	{
		if(i==9)
		break;
		cin>>t;
		if(t==0) cnt_0++;
		
		else cnt_1++;
		
		i++;
	}
	cout<< abs(cnt_1 - cnt_0)/4;
	
	
	return 0;
}
这里空空如也



有帮助,赞一个