ACM/ICPC集训队组队积分赛1

F: Here’s a Product Which Will Make You Tensor