[C#] 백준 11021번 : A+B - 7
using System;
class Program
{
static void Main()
{
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]);
Console.WriteLine($"Case #{i + 1}: {num2 + num3}");
}
}
}
반응형
'백준 > C#' 카테고리의 다른 글
[C#] 백준 2438번 : 별 찍기 - 1 (0) | 2025.01.23 |
---|---|
[C#] 백준 11022번 : A+B - 8 (0) | 2025.01.23 |
[C#] 백준 15552번 : 빠른 A+B (0) | 2025.01.23 |
[C#] 백준 25314번 : 코딩은 체육과목 입니다 (0) | 2025.01.23 |
[C#] 백준 25304번 : 영수증 (1) | 2025.01.23 |