최근 포스트

[구름] a4 용지를 만들자

문제 설명 가로 N cm, 세로 M cm의 직사각형 종이로 A4 용지를 최대 몇 개를 만들 수 있는지 구해주세요. 여기서 말하는 A4용지의 규격은 편의상 가로 20cm, 세로 40cm의 수치를 가집니다.

[구름] 셀프레벨테스트 9차-진법 변환

문제 설명 10진법으로 표현된 정수 N을 특정한 r진법으로 표현하는 것은 매우 쉽다. 하지만 정수 N을 어던 진법으로 변환한 결과 T를 알고 있을 때 변환에 사용된 진법 r을 알아내는 것은 어려울 수 있다. 정수 N을 r진법으로 변환한 결과 T가 주어질 때, r을 구하는 프로그램...

[Hackerrank] Jesse and Cookies

문제 설명 Jesse loves cookies and wants the sweetness of some cookies to be greater than value k. To do this, two cookies with the least sweetness are repeatedly...

[Hackerrank] Simple Text Editor

문제 설명 Implement a simple text editor. The editor initially contains an empty string, S. Perform Q operations of the following 4 types: