[Home|Training|Problems|Contests|C Language] | [Login|Register] |

Problems Status Rank |
Problem 1288
Counting DNAs
Time Limit: 1000ms
Memory Limit: 65536kb Description
Scientists have discovered a new species whose DNA is quite special. The structure of DNA comprises 2 Let’s denote the Two DNAs Your task is to to write a program to calculate the number different DNAs. Input
The input consists of multiple test cases. Each test case contains only three integers The input ends with “ Output
For each test case, output “ Sample Input
1 2 2 1 2 3 1 3 2 1 3 3 2 2 2 0 0 0 Sample Output
Case 1: 4 Case 2: 9 Case 3: 12 Case 4: 38 Case 5: 16 Hint
The 4 different DNAs in test case 1 are: The 9 different DNAs in test case 2 are: |

University of Science and Technology of China

Online Judge for ACM/ICPC

Processed in 1.1ms with 1 query(s).

Online Judge for ACM/ICPC

Processed in 1.1ms with 1 query(s).