import sys if __name__ == "__main__": # 读取第一行的n num = int(sys.stdin.readline().strip()) for i in range(num): # 读取每一行 line = sys.stdin.readline().strip() # 把每一行的数字分隔后转化成int列表 n,m,c = list(map(int, line.split())) s = n*m line = sys....