전체 글
-
백준 BAEKJOON[3052] : 나머지 - JAVA (Class-1)Dev/코딩테스트 2021. 3. 6. 19:16
먼저 한마디 하자면 내가 푸는 모든 문제를 블로그에 적는것이 아닌 solved.ac 에서 클래스 단위로 문제를 풀어가면서 시간이 20분 이상 걸린 문제들에 대해서만 포스팅을 할 예정이다. 그렇다는건 나는 개발을 업으로 하면서 이런 간단한 문제도20분 이상 소요했다는것이 너무 절망스럽다. 앞으로 나아질 것이라 생각한다. 문제 링크 : www.acmicpc.net/problem/3052 3052번: 나머지 각 수를 42로 나눈 나머지는 39, 40, 41, 0, 1, 2, 40, 41, 0, 1이다. 서로 다른 값은 6개가 있다. www.acmicpc.net 먼저 한마디 하자면 내가 푸는 모든 문제를 블로그에 적는것이 아닌 solved.ac 에서 클래스 단위로 문제를 풀어가면서 시간이 20분 이상 걸린 문제..
-
백준 BAEKJOON[2675] : 문자열 반복 - JAVA (Class-1)Dev/코딩테스트 2021. 3. 6. 12:15
더보기 문제 문자열 S를 입력받은 후에, 각 문자를 R번 반복해 새 문자열 P를 만든 후 출력하는 프로그램을 작성하시오. 즉, 첫 번째 문자를 R번 반복하고, 두 번째 문자를 R번 반복하는 식으로 P를 만들면 된다. S에는 QR Code "alphanumeric" 문자만 들어있다. QR Code "alphanumeric" 문자는 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ\$%*+-./: 이다. 입력 첫째 줄에 테스트 케이스의 개수 T(1 ≤ T ≤ 1,000)가 주어진다. 각 테스트 케이스는 반복 횟수 R(1 ≤ R ≤ 8), 문자열 S가 공백으로 구분되어 주어진다. S의 길이는 적어도 1이며, 20글자를 넘지 않는다 예제 입력 2 3 ABC 5 /HTP 예제 출력 AAABBBCC..
-