백준 BOJ C# 10950 A+B - 3
2020. 1. 10. 16:06ㆍ백준 알고리즘 단계별/for 문
반응형
출제 링크 : https://www.acmicpc.net/problem/10950
코드
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
using System;
using static System.Console;
namespace baekjoon
{
class Program
{
static void Main(string[] args)
{
string inputNum = Console.ReadLine();
int num = int.Parse(inputNum);
for (int i = 0; i < num; i++)
{
string a = Console.ReadLine();
string[] aArr = a.Split();
WriteLine(int.Parse(aArr[0]) + int.Parse(aArr[1]));
}
}
}
}
http://colorscripter.com/info#e" target="_blank" style="color:#4f4f4ftext-decoration:none">Colored by Color Scripter
http://colorscripter.com/info#e" target="_blank" style="text-decoration:none;color:white">cs |
반응형