算法思路:

对于每组输入的整数,我们可以通过循环遍历的方式求出它们的和,并将和输出即可。

Python3 代码:

our task is to calculate the sum of some integers输入Input contains an integer N in the first line and then N lines follow Each line starts with a integer M and then M integers follow in the same line输出

原文地址: http://www.cveoy.top/t/topic/hjHz 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录