游客 Signup | Login
中文 | En

3101 - 【创新型】第9章: 指针 9.17 谁是最大的(2)

通过次数

0

提交次数

0

Time Limit : 1 秒 Memory Limit : 128 MB

找出一个2×3的矩阵中的最大值及其行下标和列下标,要求调用子函数FindMax(int p[][3], int m, int n, int pRow, int pCol)实现,最大值以函数的返回值得到,行下标和列下标在形参中以指针的形式返回。

Input

两行数据,每行三个整数中间用空格   

Output

输出最大的数,行下标,列下标

例如:

Max=5,Row=0,Col=1

Examples

Input Format

1 2 3
4 5 6

Output Format

Max=6,Row=1,Col=2