您当前的位置: 首页 > 

MangataTS

暂无认证

  • 4浏览

    0关注

    423博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

Home_W的位运算(位运算+预处理)

MangataTS 发布时间:2021-01-16 21:58:00 ,浏览量:4

Home_W的位运算1

题目链接: 传送门解题思路:这题有两种解题思路,一种就是\(n^2\times m\)的时间复杂度,还有一种就是经过预处理的时间复杂度为\(n^2\)的方法,先说第一种,大家直接按照题目要求的来,一行向量一行向量的进行比较久能AC,没有卡时间,先贴代码: code:

#include
#include
#include
#include
using namespace std;

const int N = 200;
int mp[N][N];//mp记录的是n个向量
int m,n;

bool check(int a,int b) {
	for(int i = 1;i             
关注
打赏
1665836431
查看更多评论
0.0369s