Back to Programming Languages forum
I'm using C# to complete the problems, and so far I have done a few of them and have noticed that the test data puts a lot of zeros in my output, though when I run the compiler on VS and I manually enter the test input everything's okay.
I don't want to give out any answers for any of the problems, so if you wish to check my code for them please look at my profile!
I don't use C#, so keep that in mind when you read on.
I looked at your code for Sum A+B and the way you read the input seems "odd".
I looked at other submissions using C# and I couldn't find anything that looked similar to your way of doing it.
Have a look at some of the other C# submissions to see if that helps. Some of them "hard code" the values, so just ignore those.
Otherwise, does the C# bit of http://www.codeabbey.com/index/wiki/running help?
using System;
using System.Linq;
class Program
{
static void Main()
{
Console.WriteLine(Console.ReadLine().Split().Sum(Int32.Parse));
}
}