Untitled

mail@pastecode.io avatar
unknown
csharp
7 months ago
291 B
2
Indexable
Never
/* hw8-2.h */
#include <stdio.h>
#include <stdlib.h>


void modify(int* a, int val) {
    *a = val;
}

int query(int (*mp)[131][131][131], char a[4], char b[4]) {
    int val_a = (*mp)[a[0]][a[1]][a[2]];
    int val_b = (*mp)[b[0]][b[1]][b[2]];
    return (val_a + val_b) % 2;
}
Leave a Comment