태그 : Easy 요약보기전체보기목록닫기
- ChristmasBatteries(0)2021.02.07
- GoldenChain(0)2021.01.12
- RectangularGrid(0)2020.03.15
- Bonuses(0)2020.03.02
- ExerciseMachine(0)2020.02.27
- ArithmeticSequenceDiv1(0)2019.12.21
- TreasureHunt(0)2019.12.20
- RepeatedSubstrings(0)2019.12.02
- T9Input(0)2019.11.27
- WordForm(0)2019.11.24
- 미분류
- 2021/02/07 05:47
Problem건전지를 넣어 동작하는 장난감이 있다. 장난감은 총 N개, 건전지는 총 N개다. 장난감 번호는 0에서 N-1이고, i번 장난감은 (i mod 5)개 건전지를 필요로 한다. i번 장난감이 주는 즐거움(fun)의 양은 ((X*i*i + Y*i + Z) mod M)이다. 건전지 N개를 사용해 즐거움을 극대화할 수 있는 장난감 개수를 찾고, 이 때...
- Topcoder
- 2021/01/12 06:32
Problem다양한 길이의 금사슬을 연결해 목걸이를 만들어야 한다. 연결시키려면, 한 사슬의 끝쪽 고리의 일부를 절단하고 이를 다른 사슬의 끝 고리에 연결하면 된다. 고리를 절단하는 횟수를 최소화해서 목걸이를 만들어라.Constraintssections의 길이는 1이상 50이하다.sections의 요소는 1부터 2,147,483,647이하다.s...
- Topcoder
- 2020/03/15 02:32
Codepublic class RectangularGrid{ public long countRectangles(int width, int height) { long res = 0; &nbs...
Codepublic class Bonuses{ public int[] getDivision(int[] points) { int len = points.length; &...
- Topcoder
- 2020/02/27 15:26
Codepublic class ExerciseMachine { public int getPercentages(String time) { int total = Integer.parseInt(time.substring(0, 2)) *...
- Topcoder
- 2019/12/21 05:36
Codepublic class ArithmeticSequenceDiv1 { public int findMinCost(int[] x) { int n = x.length;  ...
- Topcoder
- 2019/12/20 20:40
Codepublic class TreasureHunt{ int xLen,yLen; char[][] land; String[] inst; boolea...
- Topcoder
- 2019/12/02 10:28
Codepublic class RepeatedSubstrings{ public String decompress(String compressed) { String[] sp = compressed.split("\\s*[^0-9]+\\...
Codeimport java.util.Arrays;import java.util.HashMap;import java.util.TreeSet;public class T9Input { public String[] getKeypresses(String[] messages) { ...
Codepublic class WordForm { // The problem name is Stemmer. public String getSequence(String word) { word = word.to...
최근 덧글