https://www.acmicpc.net/problem/11654
using System;
using System.IO;
using System.Text;
namespace baekjoon
{
class Program
{
static void Main(string[] args)
{
// 표준 입출력 스크림 reader, writer 만들기
// 알파벳 소문자, 대문자, 숫자 0-9중 하나 입력받기
// 주어진 글자의 아스키 코드값을 구하기
// 버퍼에 저장
// 버퍼 한 번에 비우기
StreamReader sr = new StreamReader(Console.OpenStandardInput());
StreamWriter sw = new StreamWriter(Console.OpenStandardOutput());
Encoding ascii = Encoding.ASCII;
string strInput = sr.ReadLine();
Byte[] encodedBytes = ascii.GetBytes(strInput);
foreach (Byte b in encodedBytes)
{
sw.WriteLine("{0}", b);
}
sw.Flush();
sr.Close();
sw.Close();
}
}
}