Advent of Code

Diff
Login

Diff

Differences From Artifact [b9786e59e9]:

To Artifact [4bb9424853]:


1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <ctype.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include "aocdailies.h"
#include "aocutils.h"

static size_t rcmap(unsigned size, unsigned row, unsigned col) {
    return row * (size + 1) + col;
}







<







1
2
3
4
5
6

7
8
9
10
11
12
13
#include <ctype.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include "aocdailies.h"
#include "aocutils.h"

static size_t rcmap(unsigned size, unsigned row, unsigned col) {
    return row * (size + 1) + col;
}