# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
761451 |
2023-06-19T16:34:09 Z |
lis05st |
Brperm (RMI20_brperm) |
C++17 |
|
3000 ms |
1908 KB |
//#include "brperm.h"
#include <iostream>
#include <vector>
#include <string>
#include <math.h>
#include <cmath>
#include <iomanip>
#include <cstdio>
#include <algorithm>
#include <numeric>
#include <map>
#include <set>
#include <queue>
#include <stack>
#include <deque>
#include <bitset>
#include <cstring>
#include <unordered_map>
using namespace std;
typedef long long ll;
ll inv(ll n, ll sz){
if(sz == 0)
return 0;
ll res = 0;
for(int i = 0; i < sz; i++){
res += ((n>>i)&1)<<(sz-i-1);
}
return res;
}
string a;
void init(int n, const char s[]) {
a = "";
for(int i = 0; i < n; i++)
a += s[i];
return;
}
int query(int l, int k) {
for(int i = 0; i < (1 << k); i++)
if(a[l + i] != a[l + inv(i, k)])
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 |
3055 ms |
1908 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 |
- |