练习专区

今天的一小步就是明天的一大步
Problem 1177 放什么
Accepted: 4   Total Submit: 21
Time Limit: 1000ms   Memory Limit: 30720KB
Description
有一个柜子有m×n个抽屉,里面放了物品,给出第几行、第几列,请你编程取出相应的物品。例如: 1 2 3 4 5 1 book pen pin-pong shoes ball 2 hand-bag notebook cup mobilephone wallet 3 clothes appale dictionary telephone camera 4 telescope computer tea laptop flower 指2,5时输出”wallet“
Input
先输出一个正整数T(T<10),表示有T种情况。每种情况的第一行输入两个整数m、n、k(0 Output
先输出“Case id:"id是序号.接着按提问的顺序输出物品。
Sample Input
1
4 5 3
book pen pin-pong shoes ball
hand-bag notebook cup mobilephone wallet
clothes appale dictionary telephone camera
telescope computer tea laptop flower
2 5
1 3
4 1
Sample Output
Case 1:wallet pin-pong telescope
Hint
提交     返回