mirror of
https://github.com/aicodix/code.git
synced 2026-04-27 14:30:36 +00:00
limit code length to 256
This commit is contained in:
parent
0642259333
commit
520382a396
3 changed files with 7 additions and 15 deletions
|
|
@ -20,7 +20,7 @@ Copyright 2025 Ahmet Inan <inan@aicodix.de>
|
|||
|
||||
int main()
|
||||
{
|
||||
const int MAX_M = 10;
|
||||
const int MAX_M = 8;
|
||||
const int MAX_N = 1 << MAX_M;
|
||||
const int M = 7;
|
||||
const int N = 1 << M;
|
||||
|
|
@ -52,7 +52,7 @@ int main()
|
|||
auto rel_seq = new int[MAX_N];
|
||||
(*construct)(rel_seq, MAX_M);
|
||||
delete construct;
|
||||
auto rank_map = new int[N];
|
||||
auto rank_map = new uint8_t[N];
|
||||
for (int i = 0, j = 0; i < MAX_N && j < N; ++i) {
|
||||
int index = rel_seq[i];
|
||||
if (index < N)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue