QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#665888 | #8726. Magic Show | huazai676 | Compile Error | / | / | C++17 | 1.1kb | 2024-10-22 15:44:53 | 2024-10-22 15:44:55 |
Judging History
Alice
#include<iostream>
#include<cstring>
#include<algorithm>
#include<vector>
#include<random>
using namespace std;
namespace
{
const int N=64,M=60;
typedef long long ll;
}
vector<pair<int,int> > Alice()
{
vector<pair<int,int> > res;
ll x=setN(N*M+2);
for(int i=0;i<N;i++)
{
for(int j=1;j<=M;j++)
{
int u=i*M+j;
if(x>>i&1)
res.push_back({u,N*M+1});
else
res.push_back({u,N*M+2});
}
}
res.push_back({N*M+1,N*M+2});
return res;
}
Bob
#include<iostream>
#include<cstring>
#include<algorithm>
#include<vector>
#include<random>
using namespace std;
namespace
{
const int N=64,M=60;
typedef long long ll;
int fa[N*M+10];
}
ll Bob(vector<pair<int,int> > V)
{
for(auto[u,v]:V)
{
if(v==N*M+1) fa[u]=1;
if(u==N*M+1) fa[v]=1;
}
ll res=0;
for(int i=0;i<N;i++)
{
ll f=0;
for(int j=1;j<=M;j++)
{
int u=i*M+j;
f|=fa[u];
}
res|=f<<i;
}
return res;
}
Details
Alice.code: In function ‘std::vector<std::pair<int, int> > Alice()’: Alice.code:18:10: error: ‘setN’ was not declared in this scope 18 | ll x=setN(N*M+2); | ^~~~