ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1000. A+B Problem

Решение C# | Solution C#
Posted by Viktor 5 Apr 2017 03:22
using System;
namespace t1000{
    class Program{
        public static void Main(string[] args){
            string[] s = Console.ReadLine().Split(' ');
            Console.WriteLine(int.Parse(s[0]) + int.Parse(s[1]));
        }
    }
}
Re: Решение C# | Solution C#
Posted by Stas 10 Jun 2018 01:46
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{

    class Program
    {
        static void Main(string[] args)
        {

            int a, b;
            a=Convert.ToInt32(Console.ReadLine());
            b = Convert.ToInt32(Console.ReadLine());
            Console.WriteLine(a + b);

        }
    }
}
Why my method is incorrect?