본문 바로가기
백준

10950번 백준 문제 풀이

by O_x 2022. 4. 11.

테스트 케이스라는 말을 못봐서 늦게 풀었다 제목도 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

 

'백준' 카테고리의 다른 글

백준 c# 2741번 문제  (0) 2022.04.12
백준 c# 15552 번 문제 빠른 A + B  (0) 2022.04.11
8393번 합 백준 C# 문제풀이 합  (0) 2022.04.11
백준 C# 2739번 문제  (0) 2022.04.10
백준 2480번 C# 문제 풀이  (0) 2022.04.10

댓글