[백준] C# : A+B - 3 (10950번)

ssu_hyun·2022년 7월 13일
0

Data Structure & Algorithm

목록 보기
26/67
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Baekjoon
{
    class Program
    {
        static void Main(string[] args)
        {
            // 테스트 케이스 개수 입력받기
            int x = int.Parse(Console.ReadLine());
            // 테스트 케이스 개수만큼 더하기 
            for (int i=0; i < x; i++)
            {
                string [] s = Console.ReadLine().Split();
                int a = int.Parse(s[0]);
                int b = int.Parse(s[1]);
                Console.WriteLine(a + b);
            }
        }
    }
}

0개의 댓글