Submission #923287

# Submission time Handle Problem Language Result Execution time Memory
923287 2024-02-07T05:09:55 Z vjudge1 Maxcomp (info1cup18_maxcomp) C++17
Compilation error
0 ms 0 KB
#include <bits/stdc++.h>
#include "grader.h"
using namespace std;
vector<int>findSequence(int n){
    map<set<string>,string>cnt;
    for(int i=0;i<(1<<n);i++){
        string s="";
        for(int j=0;j<n;j++){
            if((i>>j)&1){
                s+='1';
            }else{
                s+='0';
            }
        }
        set<string>e;
        for(int r=(n/2+1);r<=(n/2+1);r++){
            for(int k=0;k<(1<<(r));k++){
                string t="";
                for(int j=0;j<(r);j++){
                    if((k>>j)&1){
                        t+='1';
                    }else{
                        t+='0';
                    }
                }
                int p=0;
                for(auto u:s){
                    if(p<t.size() and u==t[p]){
                        p++;
                    }
                }
                if(p==t.size()){
                    e.insert(t);
                }
            }
        }
        cnt[e]=s;
    }
    set<vector<int>>e;
    for(int r=(n/2+1);r<=(n/2+1);r++){
        for(int k=0;k<(1<<(r));k++){
            vector<int>t;
            for(int j=0;j<(r);j++){
                if((k>>j)&1){
                    t.push_back(1);
                }else{
                    t.push_back(0);
                }
            }
            if(isSubsequence(t)){
                e.insert(t);
            }
        }
    }
    vector<int>ans;
    for(auto u:cnt[e]){
        ans.push_back(u-'0');
    }
    return ans;
}

Compilation message

maxcomp.cpp:2:10: fatal error: grader.h: No such file or directory
    2 | #include "grader.h"
      |          ^~~~~~~~~~
compilation terminated.