摘要: Description You are given a bunch of wooden sticks. Each endpoint of each stick is colored with some color. Is it possible to align the sticks ... 阅读全文
posted @ 2015-08-18 19:47 martinue 阅读(143) 评论(0) 推荐(0) 编辑
摘要: Description Some of the secret doors contain a very interesting word puzzle. The team of archaeologists has to solve it to open that doors. Bec... 阅读全文
posted @ 2015-08-18 19:33 martinue 阅读(140) 评论(0) 推荐(0) 编辑
摘要: Description Ali has taken the Computer Organization and Architecture course this term. He learned that there may be dependence between instructi... 阅读全文
posted @ 2015-08-18 19:21 martinue 阅读(383) 评论(0) 推荐(0) 编辑
摘要: Description Dandelion's uncle is a boss of a factory. As the spring festival is coming , he wants to distribute rewards to his workers. Now he h... 阅读全文
posted @ 2015-08-18 19:17 martinue 阅读(291) 评论(0) 推荐(0) 编辑
摘要: Description 有一群人,打乒乓球比赛,两两捉对撕杀,每两个人之间最多打一场比赛。 球赛的规则如下: 如果A打败了B,B又打败了C,而A与C之间没有进行过比赛,那么就认定,A一定能打败C。 如果A打败了B,B又打败了C,而且,C又打败了A,那么A、B、C三者都不可能成为冠军... 阅读全文
posted @ 2015-08-18 19:11 martinue 阅读(795) 评论(0) 推荐(0) 编辑
摘要: Description 有N个比赛队(1#include #include #include using namespace std;int a[510][510],rd[510],z[510];void bfs(int n){ int x=0; while(x<n) ... 阅读全文
posted @ 2015-08-18 19:01 martinue 阅读(117) 评论(0) 推荐(0) 编辑