https://www.acmicpc.net/problem/3047
정렬 문제로 분류된 3047 - ABC 입니다.
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
32
33
34
35
36
37
38
39
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace _3047
{
class Program
{
static void Main(string[] args)
{
string[] input = Console.ReadLine().Split(' ');
string charInput = Console.ReadLine();
List<int> list = new List<int>();
foreach (string str in input)
list.Add(int.Parse(str));
Dictionary<string, int> dict = new Dictionary<string, int>();
{
int num;
dict.TryGetValue(charInput.Substring(i, 1), out num);
Console.Write("{0} ", num);
}
int last;
dict.TryGetValue(charInput.Substring(2, 1), out last);
Console.Write(last);
}
}
}
|
설명은 생략합니다...
백준#5052 - 전화번호 목록 (0) | 2020.05.02 |
---|---|
백준#11652 - 카드 (0) | 2020.04.29 |
백준#10825 - 국영수 (0) | 2020.04.21 |
백준#11004 - K번째 수 (0) | 2020.04.20 |
백준#11651 - 좌표 정렬하기 2 (0) | 2020.04.20 |