CCF202009-2风险人群筛查(c++)

CCF202009-2风险人群筛查(c++),第1张

CCF202009-2风险人群筛查(c++) 问题:

解:
#include 
#include 
using namespace std;
bool wei(int xl,int yd,int xr,int yu,int x,int y) {
	if(xl<=x&&x<=xr&&yd<=y&&y<=yu) return true;
	else return false;
}
int count1(int a[],int n) {  //查找连续1的最大次数
	int p[n]= {0};
	int x=0;
	for(int i=0; i>n>>k>>t>>xl>>yd>>xr>>yu;
	int stu[n][2*t];
	for(int i=0; i>stu[i][j];
	int ans1=0;   //经过高危区域人数
	int ans2=0;   //曾在高危区域逗留的人数
	int s[n]= {0};  //标记,0未经过,1经过
	int tem[n][t]= {0}; //t个位置标记
	for(int i=0; i=k) ans2++;
	}
	cout<

水题丫 

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zaji/5611256.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-15
下一篇 2022-12-15

发表评论

登录后才能评论

评论列表(0条)

保存