QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#425891#7281. How to Avoid Disqualification in 75 Easy StepsLynkcat#0 128ms24896kbC++201.5kb2024-05-30 18:33:582024-05-30 18:34:02

Judging History

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

  • [2024-05-30 18:34:02]
  • 评测
  • 测评结果:0
  • 用时:128ms
  • 内存:24896kb
  • [2024-05-30 18:33:58]
  • 提交

answer

#include<bits/stdc++.h>
#include "avoid.h"
#define poly vector<int>
#define IOS ios::sync_with_stdio(false)
#define ll long long
#define mp make_pair
#define mt make_tuple
#define pa pair < int,int >
#define fi first
#define se second
#define inf 1e18
#define mod 998244353
#define sz(x) ((int)((x).size()))
// #define int ll
// #define N 
using namespace std;
const int d[4]={3,5,7,11};
const int B=35;
mt19937_64 rnd(time(0));
ll val[1005];
pair<int,int> scout(int R, int H)
{
    for (int i=1;i<=1000;i++)
    {
        poly ww(B,0);
        for (int j=0;j<B;j++) ww[j]=j;
        shuffle(ww.begin(),ww.end(),rnd);
        for (int j=0;j<15;j++) val[i]|=(1ll<<ww[j]);
    }
    unordered_map<ll,int>Mp;
    for (int i=1;i<=1000;i++)
        for (int j=i;j<=1000;j++) 
        {
            // cout<<i<<" "<<j<<" "<<(val[i]|val[j])<<endl;
            // assert(!Mp.count(val[i]|val[j]));
            Mp[val[i]|val[j]]=1;
        }
    for (int i=0;i<B;i++)
    {
        poly now;
        for (int j=1;j<=1000;j++)
            if ((val[j]>>i)&1) now.push_back(j);
        send(now);
    }
    poly now=wait();
    ll res=0;
    for (int i=0;i<sz(now);i++)
        if (now[i]) res|=(1ll<<i);
    for (int i=1;i<=1000;i++)
        for (int j=i;j<=1000;j++)
            if (res==(val[i]|val[j]))
            {
                return mp(i,j);
            }
}
/*list:
1.mod 998244353 or 1e9+7 or ???
2.N
3.duipai shuju xingtai duoyidian
...
*/

詳細信息

Subtask #1:

score: 0
Wrong Answer

Test #1:

score: 0
Wrong Answer
time: 101ms
memory: 24836kb

input:



output:


result:

wrong answer Not correct

Subtask #2:

score: 0
Wrong Answer

Test #11:

score: 0
Wrong Answer
time: 100ms
memory: 24896kb

input:

\x14

output:


result:

wrong answer Not correct

Subtask #3:

score: 0
Wrong Answer

Test #66:

score: 0
Wrong Answer
time: 89ms
memory: 24896kb

input:

\x1e

output:


result:

wrong answer Not correct

Subtask #4:

score: 0
Wrong Answer

Test #120:

score: 0
Wrong Answer
time: 128ms
memory: 24352kb

input:

K

output:


result:

wrong answer Not correct