题解 | #多组_二维数组_T组形式# Python
多组_二维数组_T组形式
https://www.nowcoder.com/practice/fe1e902e076b46dd82e7d42e12617893
import sys t = int(sys.stdin.readline().strip()) for _ in range(t): n,m = map(int, sys.stdin.readline().strip().split()) total_sum = 0 for _ in range(n): total_sum += sum(list(map(int, sys.stdin.readline().strip().split()))) print(total_sum)