시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
---|---|---|---|---|---|
1 초 | 128 MB | 6 | 4 | 4 | 66.667% |
Inspired 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 Areopagusvirus, a virus discovered on Mars by your company's privately-subsidized (top-secret) space program.
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 3 components:
Following the final data set will be a single line, “ENDOFINPUT”.
For 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:
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
0 3011 82B26543AD11310 0ABCDEFGHIJKLMN 09876543210 8AAAAAAAA0