반응형
SMALL
문제

풀이
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace BOJ_11945
{
internal class Program
{
static void Main(string[] args)
{
StreamWriter sw = new StreamWriter(Console.OpenStandardOutput());
StreamReader sr = new StreamReader(Console.OpenStandardInput());
int[] NM = Array.ConvertAll(sr.ReadLine().Split(), int.Parse);
int N = NM[0];
int M = NM[1];
string[] goldFishbread = new string[N];
for (int i = 0; i < N; i++)
{
goldFishbread[i] = sr.ReadLine();
}
foreach (string eaten in goldFishbread)
{
IEnumerable<char> reverse = eaten.Reverse();
foreach (char re in reverse) { sw.Write(re); }
sw.WriteLine();
}
sr.Close();
sw.Close();
}
}
}
결과창


반응형
LIST
'Algorithm > BOJ' 카테고리의 다른 글
| [BOJ] 2605번 줄세우기 C# 사용 풀이 (0) | 2023.02.05 |
|---|---|
| [BOJ] 5524번 입실 관리 C# 문제 풀이 (0) | 2023.02.05 |
| [BOJ] 4796번 캠핑 C#사용 알고리즘 풀이 (0) | 2023.02.04 |
| [BOJ] 1343번 폴리오미노 - C# 사용 - 미해결 (0) | 2023.02.04 |
| [BOJ] 2864 5와 6의 차이 c# 사용 풀이 (0) | 2023.02.01 |