[BOJ/C#] 11945 뜨거운 붕어빵
Algorithm 2023. 2. 2. 14:09반응형
https://www.acmicpc.net/problem/11945
using System;
using System.Collections.Generic;
using System.IO;
using System.IO.Pipes;
using System.Linq;
using System.Numerics;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading;
namespace BOJ
{
class Program
{
static void Main(string[] args)
{
StreamReader sr = new StreamReader(new BufferedStream(Console.OpenStandardInput()));
StreamWriter sw = new StreamWriter(new BufferedStream(Console.OpenStandardOutput()));
int[] nm = Array.ConvertAll(sr.ReadLine().Split(), int.Parse);
int n = nm[0];
for (int i = 0; i < n; i++)
{
var str = sr.ReadLine();
sw.WriteLine(new string(str.Reverse().ToArray()));
}
sr.Close();
sw.Close();
}
}
}
반응형
'Algorithm' 카테고리의 다른 글
[BOJ] 3040 백설 공주와 일곱 난쟁이 (0) | 2023.02.06 |
---|---|
[BOJ] 2581 소수 (0) | 2023.02.05 |
[BOJ/C#] 4796 캠핑 (0) | 2023.01.31 |
[BOJ/C#] 2864 5와 6의 차이 (0) | 2023.01.31 |
[BOJ/C#] 10162 전자레인지 (0) | 2023.01.31 |