Location:
Search - acm 14
Search list
Description: www.acm.pku.edu.cn上的1005题-www.acm.pku.edu.cn of 1005 that
Platform: |
Size: 41555 |
Author: 请不要用公用帐号上载 |
Hits:
Description: www.acm.pku.edu.cn上的1005题-www.acm.pku.edu.cn of 1005 that
Platform: |
Size: 40960 |
Author: 请不要用公用帐号上载 |
Hits:
Description: 双向BFS搜索算法,是针对acm.hdu.edu.cn上1401题所实现的代码,效率非常高。-Bi-directional BFS search algorithm is acm.hdu.edu.cn on the 1401 title by the realization of the code is highly efficient.
Platform: |
Size: 1024 |
Author: sinamaster |
Hits:
Description: 杭电HDOJ1301-1425代码(ACM)-HDOJ1301-1425(for acmer)
Platform: |
Size: 6144 |
Author: starwan |
Hits:
Description: 二分图的最大匹配之匈牙利算法详解,以前做ACM时写的,仅供参考,另外提供了一个北大题目的源程序作为实现实例-data structure--graph
Platform: |
Size: 4096 |
Author: 宋天宝 |
Hits:
Description: 四川大学ACM图论资料 课件内含部分源码,全部课件-ACM, Sichuan University courseware includes some of graph theory information source, all courseware
Platform: |
Size: 100352 |
Author: gold |
Hits:
Description: 北京大学ACM/ICPC竞赛队
2009 PKU ACM/ICPC Trainning 14
Colored Sticks
F:Colored Sticks
时间限制:
5000ms
内存限制:
65536kB
描述
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 in a straight line such that the colors of the endpoints that touch are of the same color?
输入
Input is a sequence of lines, each line contains two words, separated by spaces, giving the colors of the endpoints of one stick. A word is a sequence of lowercase letters no longer than 10 characters. There is no more than 250000 sticks.
输出
If the sticks can be aligned in the desired way, output a single line saying Possible, otherwise output Impossible.
样例输入
blue red
red violet
cyan blue
blue magenta
magenta cyan
样例输出
Possible
提示
Huge input,scanf is recommended. -2009 PKU ACM/ICPC Trainning 14
Colored Sticks
Platform: |
Size: 1024 |
Author: changxin |
Hits:
Description: ACM入门书的配套源码 很适合ACMer入门使用 分章节一共有14章-this code is book of programming challenge. it suit for the ACMer who begin to learn Computer programming
Platform: |
Size: 3905536 |
Author: ciea |
Hits: