Submission #457494

# Submission time Handle Problem Language Result Execution time Memory
457494 2021-08-07T07:48:01 Z AdamGS Brperm (RMI20_brperm) C++14
0 / 100
3000 ms 2156 KB
#include "brperm.h"
#include<bits/stdc++.h>
using namespace std;
#define rep(a, b) for(int a = 0; a < (b); ++a)
#define st first
#define nd second
#define pb push_back
#define all(a) a.begin(), a.end()
const int LIM=5e5+7;
int n;
char T[LIM];
void init(int x, const char s[]) {
        n=x;
        rep(i, n) T[i]=s[i];
}
int odw(int x, int k) {
        int ans=0;
        rep(i, k) {
                if(x&(1<<i)) ans+=1<<(k-i-1);
        }
        return ans;
}
int query(int i, int k) {
        rep(j, 1<<k) {
                if(T[i+j]!=T[i+odw(j, k)]) return 0;
        }
        return 1;
}
# Verdict Execution time Memory Grader output
1 Incorrect 18 ms 204 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 18 ms 204 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 3069 ms 2156 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 18 ms 204 KB Output isn't correct
2 Halted 0 ms 0 KB -