Rujia Liu's Present

Contest 2

A Big Contest of Brute Force

Hello! Here I am again! Have you tried my first present - A Tiny Contest of Brute Force? That one is probably too hard for beginners. This time I tried to attract more people to be involved, so I added a really easy problem. Let's see who solves it first ;-)

This is my second present to everyone who loves algorithms and programming. Just like the first one, this contest is partly educational. And... please think hard before implementing, especially for some problems that SEEMS EASY. For example, we got 42 ACs but 208 TLEs for Another n-Queen problem in the last contest. I guess that problem made quite a few people crazy...


Also, the entire problemset(PDF).


Special Thanks: Miguel A. Revilla, Shahriar Manzoor