文章
5
粉丝
492
获赞
1
访问
36.9k
#pragma warning(disable:4996)
#include <iostream>
#include <queue>
#include <set>
#include <bits>
using namespace std;
int* copy_set(int* a)
{
int* b = new int[21];
for (int i = 0; i < 21; i++)
{
b[i] = a[i];
}
return b;
}
int count(int* temp, int i)
{
int j = 0;
while (temp[j] != -1)
{
if (temp[j] == i) return 1;
j++;
}
return 0;
}
int cnt_num(int value[], int target, int size)
{
int cnt = 1, flag = 0;
queue<pair<int, int*>> cache1;
queue<pair<int, int*>> cache2;
set<int> record;
for (int i = 0; i ...
登录后发布评论
暂无评论,来抢沙发