题解 | #A+B(1)#
A+B(4)
https://ac.nowcoder.com/acm/contest/5657/D
C#
using System;
class test
{
static void Main()
{
string[] r = Console.ReadLine().Split(' ');
while (r[0]!="0")
{
int sum = 0;
for (int i = 1; i < r.Length; i++)
{
sum += int.Parse(r[i]);
}
Console.WriteLine(sum);
r = Console.ReadLine().Split(' ');
}
}