본문 바로가기

분류 전체보기68

[Lucky Algorithm] Compare the Triplets Alice and Bob each created one problem for HackerRank. A reviewer rates the two challenges, awarding points on a scale from to for three categories: problem clarity, originality, and difficulty.We define the rating for Alice's challenge to be the triplet , and the rating for Bob's challenge to be the triplet .Your task is to find their comparison points by comparing with , with , and with .If , .. 2017. 10. 3.
[Lucky Algorithm] Simple Array Sum Given an array of integers, can you find the sum of its elements?Input FormatThe first line contains an integer, , denoting the size of the array. The second line contains space-separated integers representing the array's elements.Output FormatPrint the sum of the array's elements as a single integer.import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.r.. 2017. 10. 3.
[Lucky Algorithm] Mini-Max Sum Given five positive integers, find the minimum and maximum values that can be calculated by summing exactly four of the five integers. Then print the respective minimum and maximum values as a single line of two space-separated long integers.Input FormatA single line of five space-separated integers.ConstraintsEach integer is in the inclusive range .Output FormatPrint two space-separated long in.. 2017. 10. 3.
[Lucky Algorithm] Grading Students HackerLand University has the following grading policy:Every student receives a in the inclusive range from to .Any less than is a failing grade.Sam is a professor at the university and likes to round each student's according to these rules:If the difference between the and the next multiple of is less than , round up to the next multiple of .If the value of is less than , no rounding occurs as .. 2017. 9. 27.
[Lucky Algorithm] 시작 여개모분들과 한 달에 알고리즘 문제 77개 풀기 프로젝트하기로 했는데...편도 2시간으로 회사 다니면서는 한달이고 뭐고 77개 채우기도 벅찰 것 같다... 일단은 되는데까지 해보기로. 2017. 9. 27.
[Spring] Spring기반 웹 사이트 템플릿 만들기 - 3. Spring Security 설정 Spring Security 설정을 하는데 이번에 내가 포스팅 하는 설정은 전자정부프레임워크의 Spring Security에서 전자정부프레임워크를 빼서 커스터마이징 한 것이다. 전 회사에서 사용자 테이블이 두 개 였던지라 EGOV에서 지원하는 SQL String방식으로는 사용할 수가 없어서 소스 뜯어 고쳐가면서 했던 건데 그때 포스팅을 남기려다가 귀찮고 복잡해서 안했는데 이번에 다시 적용하면서 공부하고 기록을 남겨본다. 이번 기회에 공부한답시고 찾아보면서 알게 된건데 어차피 Spring Security 설정에 정해진 왕도는 없었다. 잘 짜여진게 있다면 그걸 따라서 정리하는 것도 나쁘지 않은듯. 일단 pom.xml부터.. 별거 없다 Spring security 버전은 4.2.3. 4.2.3.RELEASE .. 2017. 9. 2.