#Lutece1875. 降维打击
降维打击
Migrated from Lutece 1875 降维打击
All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.
Description
众所周知,学姐姐
是个3D的人物,但是有一天学姐姐
受到了降维打击变成了子女女
,于是学姐姐
很生气,想把矩阵也变成维的。
但是不是什么矩阵都会受到学姐姐
的降维打击,只有一个矩阵C
$\begin{bmatrix} c_{11} & c_{12} & c_{13} \\\ c_{21} & c_{22} & c_{23} \\\ c_{31} & c_{32} & c_{33} \end{bmatrix}$
满足存在另一个矩阵X
$\begin{bmatrix} a_1 & a_2 & a_3 \\\ b_1 & b_2 & b_3 \end{bmatrix} $
其中 才可以降维打击,现在给你矩阵C,求是否可以降维打击。
Input
输入包括3行,每行3个数表示c矩阵。
Output
输出Yes或者No,表示可行不可行
Samples
1 0 1
2 1 2
1 0 1
Yes
2 2 2
2 1 2
2 2 2
No
Resources
学姐姐的比武招妻