Skip to content

Instantly share code, notes, and snippets.

View begoon's full-sized avatar
💭
Eating

Alexander Demin begoon

💭
Eating
View GitHub Profile
@begoon
begoon / pears_in_bucket.c
Created March 11, 2010 12:00
Problem about removal pears from the bucket
#include <stdio.h>
#include <stdlib.h>
/**
* There 16 pears in the bucket 4x4. How to remove 6 pears to guarantee
* even numbers of pears in each row and column.
*/
int b[16];
int f() {