#4331. You should output ARC, though this is ABC.

0

You should output ARC, though this is ABC.

You should output ARC, though this is ABC.

题目描述

给定整数 RR、CC 和一个 2×22 \times 2 矩阵 AA,输出 AR,CA_{R,C}。

输入格式

输入按下述格式从标准输入给出: RR CC A1,1A_{1,1} A1,2A_{1,2} A2,1A_{2,1} A2,2A_{2,2}

输出格式

以整数形式输出答案。

1 2
1 0
0 1
0
2 2
1 2
3 4
4
2 1
90 80
70 60
70

提示

输入中的所有值均为整数。 1≤R,C≤21 \le R,C \le 2 0≤Ai,j≤1000 \le A_{i,j} \le 100我们有 A1,2=0A_{1,2}=0.
我们有 A2,2=4A_{2,2}=4.
我们有 A2,1=70A_{2,1}=70.

标签: AtCoder|abc255A

来源

AtCoder|abc255A