일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
31 |
- 브루트 포스
- 대명동맛집
- 앞산카페
- 반복문
- 수성못맛집
- programmers
- oracle
- 들안길삼겹살
- 수성못삼겹살
- 대구데이트
- 오라클
- SQL
- 정렬
- C#
- 대구카페
- 큐
- 압구정데이트
- 대구삼겹살
- 백준
- 별찍기
- 대구맛집
- 수성구데이트
- 조건문
- BFS
- 안지랑카페
- 수성구맛집
- 범어동맛집
- 서울맛집
- 프로그래머스
- 대구고깃집
- Today
- Total
목록정렬 (6)
모든 일상

문제 2차원 평면 위의 점 N개가 주어진다. 좌표를 y좌표가 증가하는 순으로, y좌표가 같으면 x좌표가 증가하는 순서로 정렬한 다음 출력하는 프로그램을 작성하시오. 입력 첫째 줄에 점의 개수 N (1 ≤ N ≤ 100,000)이 주어진다. 둘째 줄부터 N개의 줄에는 i번점의 위치 xi와 yi가 주어진다. (-100,000 ≤ xi, yi ≤ 100,000) 좌표는 항상 정수이고, 위치가 같은 두 점은 없다. 출력 첫째 줄부터 N개의 줄에 점을 정렬한 결과를 출력한다. 예제 입&출력 소스코드 using System; using System.Collections.Generic; using System.Diagnostics; using System.Diagnostics.Eventing.Reader; using..

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { string str = Console.ReadLine(); int[] arr = new int[str.Length]; string result = ""; for(int i = 0; i

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { int num = int.Parse(Console.ReadLine()); int[] arr = new int[num]; int[] score = new int[8001]; // 절대값 4000 -> -4000 ~ 4000 까지 List list = new List(); int sum = 0; int min = int.MaxValue; int max = in..

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { /*int num = int.Parse(Console.ReadLine()); int[] arr = new int[num]; for(int i = 0; i

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { string[] arr = Console.ReadLine().Split(); int num = int.Parse(arr[0]); int cut = int.Parse(arr[1]); string[] buff = Console.ReadLine().Split(); int[] score_arr = Array.ConvertAll(buff, s => int.Parse..