[Login|Register]
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 1-based 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
University of Science and Technology of China
Online Judge for ACM/ICPC
Processed in 0.9ms with 1 query(s).