![]() |
South Central USA Regional Programming Contest |
|
||
|
Local Contest
Home Schedule Information Details FAQ Contest Details Welcome Rules Hints Environment Compile Howto Results Contest Report Contest Results Problems Data Solutions PC^2 About PC^2 Documentation ACM Intl Prog Contest South Central US Regional Registration |
IntroductionInspired by IBM's Blue Gene project, the CEO of Universal Biological Machinery (UBM), has called on you, UBM's top software engineer, to develop a program that will calculate the mutation of the Areopagus-virus, a virus discovered on Mars by your company's privately-subsidized (top-secret) space program.
InputInput 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 3 components:
Following the final data set will be a single line, "ENDOFINPUT".
OutputFor each data set, there will be exactly one output set, and there will be no blank lines separating output sets. A single output set consists of a single line of the viral code after it has stabilized (through mutating). The viral code will mutate according to the following rules:
Sample Input
START 1 A END START 4 A1B2 END START 15 A3B2CCC4AD1232R END START 15 0ABCDEFGHIJKLMN END START 11 ABCDEFGHIJK END START 10 9AAAAAAAAA END ENDOFINPUT
Sample Output
0 3011 82B26543AD11310 0ABCDEFGHIJKLMN 09876543210 8AAAAAAAA0
|
[Printable]
LSU Home Search Campus Map ACM Chapter Computer Science Computing Services Our Contests 2002 2001 2000 Index |
||