Exemple #1
0
void solve()
{
	for (int i = 0; i < 12; ++i)
		for (int j = -1; j <= 1; j += 2)
			if (try_with(i, j)) {
				printf("%c is the counterfeit coin and it is %s.\n",
				       'A' + i, j > 0 ? "heavy" : "light");
				return;
			}
}
Exemple #2
0
int main(int argc, char** argv) {
	(void) argc; (void) argv;
	output = fopen("experiments/cuckoo-cube/output.csv", "w");
	ASSERT(output);
	for (uint64_t side = 10; side < 1000; ++side) {
		try_with(side);
	}
	fclose(output);
	return 0;
}
Exemple #3
0
int main()
{
    const wchar_t IDEO_SPACE = L'\u3000'; // Unicode character 'IDEOGRAPHIC SPACE'
    try_with(IDEO_SPACE, "C");
    try_with(IDEO_SPACE, "en_US.UTF-8");
}