[HomeTrainingProblemsContestsC Language]  [LoginRegister] 
Problems Status Rank 
Problem 1068
Naive Matrix(这题最简单)
Time Limit: 3000ms
Memory Limit: 262144kb Description
Input
Output
For each case, please output “Case #X: Y” without quotes, where X is stands for 1based case number and Y is the required answer. Since answer might be very large, please module the answer by 1234567891.
Sample Input
2 3 10 1 1 3 3 5 2 1 10 4 2 Sample Output
Case #1: 423 Case #2: 140 Source
yuzhou627
