성장, 그 아름다운 향연
백준 14769) Stacking Cups (hashMap, sort)
algorithm/구현 2021. 5. 26. 18:41

https://www.acmicpc.net/problem/14769 14769번: Stacking Cups The first line of the input file contains an integer N, the number of cups (1 ≤ N ≤ 20). Next N lines will contain two tokens each, either as “color radius” or “diameter color”. The radius of a cup R will be a positive integer less than 1000. T www.acmicpc.net 문제 You are programming a cup stacking module for your robot. This robot is eq..

백준 20920) 영단어 암기는 괴로워 (hashmap, sortWith)
algorithm/구현 2021. 5. 26. 18:05

https://www.acmicpc.net/problem/20920 20920번: 영단어 암기는 괴로워 첫째 줄에는 영어 지문에 나오는 단어의 개수 $N$과 외울 단어의 길이 기준이 되는 $M$이 공백으로 구분되어 주어진다. ($1 \leq N \leq 100\,000$, $1 \leq M \leq 10$) 둘째 줄부터 $N+1$번째 줄까지 외울 단 www.acmicpc.net 문제 화은이는 이번 영어 시험에서 틀린 문제를 바탕으로 영어 단어 암기를 하려고 한다. 그 과정에서 효율적으로 영어 단어를 외우기 위해 영어 단어장을 만들려 하고 있다. 화은이가 만들고자 하는 단어장의 단어 순서는 다음과 같은 우선순위를 차례로 적용하여 만들어진다. 자주 나오는 단어일수록 앞에 배치한다. 해당 단어의 길이가 길수록..

profile on loading

Loading...