aboutsummaryrefslogtreecommitdiff
path: root/test/063_symmetry_mask/symmetry_mask_tests.c
blob: c14fd14b41e29e070cadbb98fea818c32c79e464 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include "../test.h"

uint64_t symmetry_mask(cube_t);

void run(void) {
	char str[STRLENMAX];
	uint64_t i, result;
	cube_t cube;

	fgets(str, STRLENMAX, stdin);
	cube = readcube(str);
	result = symmetry_mask(cube); 

	for (i = 0; i < 48; result >>= 1, i++)
		printf("%" PRIu64, result % UINT64_C(2));
	printf("\n");
}

Generated with cgit - Back to sebastiano.tronto.net