[C#] 백준 15552번 : 빠른 A+B
using System;
using System.Text;
class Program
{
static void Main()
{
StringBuilder sb = new StringBuilder();
string a = Console.ReadLine();
int num1 = int.Parse(a);
for (int i = 0; i < num1; i++)
{
string b = Console.ReadLine();
string[] numbers = b.Split(' ');
int num2 = int.Parse(numbers[0]);
int num3 = int.Parse(numbers[1]);
sb.AppendLine((num2 + num3).ToString());
}
Console.WriteLine(sb);
}
}
반응형
'백준 > C#' 카테고리의 다른 글
[C#] 백준 11022번 : A+B - 8 (0) | 2025.01.23 |
---|---|
[C#] 백준 11021번 : A+B - 7 (0) | 2025.01.23 |
[C#] 백준 25314번 : 코딩은 체육과목 입니다 (0) | 2025.01.23 |
[C#] 백준 25304번 : 영수증 (1) | 2025.01.23 |
[C#] 백준 8393번 : 합 (0) | 2025.01.23 |