Question: Help in C++ please Problem You are given a 3x3 grid. Each number in the grid is represented by Cij where (ij) denotes the square
Help in C++ please

Problem You are given a 3x3 grid. Each number in the grid is represented by Cij where (ij) denotes the square at the ith row from the top and ith column from the left. Bob gets confused. According to him, there are six integers a 1.a2,a3,b1,b2,b3 whose values are fixed and the number written in the square (ij) is equal to aitbi. You are required to determine whether Bob is correct or not. Input format The first line contains an integer T denoting the number of test cases. Next three lines contain three space-separated integers Cil. Ci2, and Ci3 denoting the ith row of grid C. Output format For each test case, print YES if Bob's statement is correct. Otherwise, print NO in a new line. Constraints 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
