# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
642696 |
2022-09-20T11:50:12 Z |
TimDee |
Brperm (RMI20_brperm) |
C++17 |
|
3000 ms |
2524 KB |
#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);
}
//cout<<i-ind<<' '<<j<<'\n';
if (S[i]!=S[ind+j]) return 0;
}
return 1;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Runtime error |
1 ms |
468 KB |
Execution killed with signal 11 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Runtime error |
1 ms |
468 KB |
Execution killed with signal 11 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Execution timed out |
3079 ms |
2524 KB |
Time limit exceeded |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Runtime error |
1 ms |
468 KB |
Execution killed with signal 11 |
2 |
Halted |
0 ms |
0 KB |
- |