摘要:
Problem D: The NecklaceMy little sister had a beautiful necklace made of colorful beads. Two successive beads in the necklace shared a common color at their meeting point. The figure below shows a segment of the necklace:But, alas! One day, the necklace was torn and the beads were all scattered ove. 阅读全文
posted @ 2013-08-21 02:08
Ramanujan
阅读(265)
评论(0)
推荐(0)
摘要:
Given a sequence of integers, a1, a2,..., an , we define its sign matrix S such that, for 1ijn , Sij = `` + " if ai +...+ aj > 0 ; Sij = `` - " if ai +...+ aj #include#include#include#include#include#include#include#include#include#include#include#includeusing namespace std;#define MAX_ 阅读全文
posted @ 2013-08-21 02:05
Ramanujan
阅读(320)
评论(0)
推荐(0)

浙公网安备 33010602011771号