![]() |
South Central USA Regional Programming Contest |
|
||
|
Results
Final Standings Problem Set Local Contest Home Schedule Information Details FAQ Contest Details Welcome Rules Hints Environment Compile Howto PC^2 About PC^2 Documentation ACM Intl Prog Contest South Central US Regional Registration |
Introduction: Thibodeaux has managed to once again lock himself inside his own house (this happens all too often). Boudreaux, being the good buddy that he is, has taken the precaution of scattering keys to the locked rooms throughout Thibodeaux's house. It is up to you to determine if Thibodeaux can make it to his bedroom (room 0). Input: Input to this problem will consist of a (non-empty) series of up to 100 data sets. Each data set will be formatted according to the following description, and there will be no blank lines separating data sets. A single data set has 4 components:
ENDOFINPUTNotes:
Output: For each data set, there will be exactly one line of output. If it is possible for Thibodeaux to reach his bedroom (room 0), print a line: YESOtherwise, print a line: NO Sample Input: START 1 2 1A A END START 1 5 1F 2A 2B 3CD 3E B C D F A E END START 1 10 9I 2A 3B 4C 5D 6E 7F 8G 9H A B C D E F G H X END ENDOFINPUT Sample Output: YES YES NO
|
[Printable]
LSU Home Search Campus Map ACM Chapter Computer Science Computng Services Our Contests 2003 2002 2001 2000 Index |
||