백준 10951번

Console(콘솔)/알고리즘 2019. 9. 26. 15:20

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Threading.Tasks;

 

namespace Syntax10

{

    class Program

    {

        static void Main(string[] args)

        {

            string input;

            while ((input = Console.ReadLine()) != null)

            {

                string[] arr = input.Split(' ');

                int a = int.Parse(arr[0].ToString());

                int b = int.Parse(arr[1].ToString());

                Console.WriteLine(a + b);

            }

        }

    }

}

 

 

'Console(콘솔) > 알고리즘' 카테고리의 다른 글

백준 1330번  (0) 2019.09.27
백준 1110번  (0) 2019.09.27
백준 5622번  (0) 2019.09.26
백준 9655번  (0) 2019.09.26
***고양이***  (0) 2019.09.25
: