QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#665888#8726. Magic Showhuazai676Compile Error//C++171.1kb2024-10-22 15:44:532024-10-22 15:44:55

Judging History

你现在查看的是最新测评结果

  • [2024-10-22 15:44:55]
  • 评测
  • [2024-10-22 15:44:53]
  • 提交

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);
      |          ^~~~