본문 바로가기
728x90

백준107

[BOJ C#] 4153 직각삼각형 using System; using System.Collections.Generic; using System.Text; using System.IO; namespace _4153 { class Program { static void Main() { StreamReader sr = new StreamReader(Console.OpenStandardInput()); StreamWriter sw = new StreamWriter(Console.OpenStandardOutput()); StringBuilder sb = new StringBuilder(); List arr = new List(); while(true) { string[] arrString = sr.ReadLine().Split(' '); int .. 2023. 1. 25.
[BOJ C#] 10250 ACM 호텔 using System; using System.Text; using System.IO; namespace _10250 { class Program { static void Main() { StreamReader sr = new StreamReader(Console.OpenStandardInput()); StreamWriter sw = new StreamWriter(Console.OpenStandardOutput()); StringBuilder sb = new StringBuilder(); int data = int.Parse(sr.ReadLine()); while (data > 0) { string[] arr = sr.ReadLine().Split(' '); int h = int.Parse(arr[0].. 2023. 1. 25.
[BOJ C#] 2798 블랙잭 using System; using System.Collections.Generic; using System.Linq; using System.IO; namespace _2798 { class Program { static void Main() { StreamReader sr = new StreamReader(Console.OpenStandardInput()); StreamWriter sw = new StreamWriter(Console.OpenStandardOutput()); string[] nm = sr.ReadLine().Split(' '); int n = int.Parse(nm[0]); int m = int.Parse(nm[1]); string[] cardString = sr.ReadLine()... 2023. 1. 25.
[BOJ C#] 2775 부녀회장이 될테야 using System; using System.Text; using System.IO; namespace _2775 { class Program { static void Main() { StreamReader sr = new StreamReader(Console.OpenStandardInput()); StreamWriter sw = new StreamWriter(Console.OpenStandardOutput()); StringBuilder sb = new StringBuilder(); int t = int.Parse(sr.ReadLine()); for(int i = 0; i < t; i++) { int k = int.Parse(sr.ReadLine()); int n = int.Parse(sr.Read.. 2023. 1. 25.
[BOJ C#] 10988 팰린드롬 using System; using System.Linq; namespace _10988 { class Program { static void Main(string[] args) { string str = Console.ReadLine(); string strReverse = new string(str.Reverse().ToArray()); int palindrome = (str == strReverse) ? 1 : 0; Console.WriteLine(palindrome); } } } 2023. 1. 15.
728x90