Submission #642700

#TimeUsernameProblemLanguageResultExecution timeMemory
642700TimDeeBrperm (RMI20_brperm)C++17
0 / 100
3060 ms1908 KiB
#include "brperm.h" #include <bits/stdc++.h> using namespace std; string S; void init(int n, const char s[]) { for (int i=0; i<n; ++i) S+=s[i]; } int query(int ind, int k) { //++k; for (int i=ind; i<ind+(1<<k); ++i) { int j=0; for (int b=k-1; b>=0; --b) { j+=(((i-ind)>>b)&1)<<(k-1-b); } if (S[i]!=S[j+ind]) return 0; } return 1; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...