일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
- 반복문
- 브루트 포스
- C#
- 압구정데이트
- 프로그래머스
- 들안길삼겹살
- 서울맛집
- 대구맛집
- 대구데이트
- 조건문
- 정렬
- 수성못맛집
- 대구삼겹살
- BFS
- 수성구데이트
- 범어동맛집
- 큐
- 수성못삼겹살
- SQL
- 앞산카페
- 대명동맛집
- 안지랑카페
- 수성구맛집
- 별찍기
- oracle
- 백준
- 대구고깃집
- 대구카페
- 오라클
- programmers
- Today
- Total
목록일상 집합소 (212)
모든 일상

using System; using System.Text; namespace ConsoleApp7 { class Program { static void Main(string[] args) { int count = int.Parse(Console.ReadLine()); for(int i = 0; i

using System; using System.Text; namespace ConsoleApp7 { class Program { static void Main(string[] args) { int count = int.Parse(Console.ReadLine()); int[] result = new int[count]; int[] num1 = new int[count]; int[] num2 = new int[count]; for (int i = 0; i

using System; using System.Text; namespace ConsoleApp7 { class Program { static void Main(string[] args) { int count = int.Parse(Console.ReadLine()); int[] result = new int[count]; for (int i = 0; i

using System; using System.Text; namespace ConsoleApp7 { class Program { static void Main(string[] args) { int count = int.Parse(Console.ReadLine()); StringBuilder result = new StringBuilder(); for (int i = count; i >= 1; i--) { result.Append($"{i}\n"); } Console.WriteLine(result.ToString()); } } } 바로 앞에 문제와 거의 비슷하나 for문 조건식이 반대

이 문제도 앞에 문제와 같이 Stringbuilder를 사용해줘야 맞다고 나오네요 ㅠㅠㅠ..... 그냥 푸시면 시간초과라고 나올겁니다 ㅠㅠ using System; using System.Text; namespace ConsoleApp7 { class Program { static void Main(string[] args) { int count = int.Parse(Console.ReadLine()); StringBuilder result = new StringBuilder(); for (int i = 1; i

10950문제와 비슷하다. 하지만 문제에서 StringBuilder를 사용하여 문제를 해결하라고 나왔다. using System; using System.Text; namespace ConsoleApp6 { class Program { static void Main(string[] args) { int count = int.Parse(Console.ReadLine()); int[] num1 = new int[count]; int[] num2 = new int[count]; StringBuilder result = new StringBuilder(); for (int i = 0; i

using System; namespace ConsoleApp6 { class Program { static void Main(string[] args) { int number = int.Parse(Console.ReadLine()); int result = 0; for(int i = 1; i