Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
示例输出假设已经有一个名为 products 的声明方法,它有一个 int 参数 n。填写 products 方法的主体,使其返回一个具有 n 行和 n 列(即 n×n)的 int[][],其中第 j 列的第 i 行包含产品(i+1)*(j+1)。
示例:products(4)[0][0] 为 1*1=1,products(4)[3][3] 为 4*4=16。
样本输入:
5
我什至不知道如何开始这个问题?