백준

10950번 백준 문제 풀이

O_x 2022. 4. 11. 21:24

테스트 케이스라는 말을 못봐서 늦게 풀었다 제목도 A+B -3라서 

A + B -3 하는 코드를 짜고 어 출력이 왜 다르지 하고 있었다...

using System;

namespace AB
{
    class Program
    {
        static void Main(string[] args)
        {
            int t = int.Parse(Console.ReadLine());

            for (int i = 0; i < t; i++) {
                string[] s = Console.ReadLine().Split();
                int num1 = int.Parse(s[0]);
                int num2 = int.Parse(s[1]);

                Console.WriteLine(num1 + num2);
            }
        }
    }
}

운영중인 카톡방입니다.

https://open.kakao.com/o/gsMhUFie

 

C/C++/C# 언리얼/유니티 /질문

#C++#C#언리얼#게임개발#질문#개발#자료구조#백준#프로그래머스#c#유니티#unity#enreal

open.kakao.com