代码取自deepseek,且已经过本地执行测试
//.cs 文件类型,便于外部编辑时使用
// 引用必要的命名空间
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;/…
位运算符好麻烦,没打括号被卡了半天
#include<iostream>
#define int long long
using namespace std;
int f[12][100][1<<11];
int s[1<<11];
int num[1<<11];
signed main(){int n,k;cin>>n>>k;int cnt=0;for(int i=0;i<(1<<…