寒假了,弱鸡也要开始做题了,其实自己做过的题目不少,但都没留下什么wp。原本觉得没什么,但时间一长,发现自己很多题目都记不清了,这与没做已经没什么区别了,所以决定从今天起把做过的和新题目都回顾一遍。
这是一道我入门时做的题目,先审题
Problem Description
Your task is to calculate the sum of some integers.
Input
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.
Output
For each group of input integers you should output their sum in one line, and with one line of output for each line in input.