12174번: #include <Google I/O.h>
백준/문제2024. 7. 26. 14:3312174번: #include <Google I/O.h>

문제 출처 : https://www.acmicpc.net/problem/12174 언어 : Kotlin 문제 설명 :우리가 사용하는 컴퓨터가 곧 출시될 구글 I/O를 너무 기대한 나머지 1과 0을 영어 대문자 I와 O로 저장하기 시작해버렸다!! 예를 들자면, 대문자 A는 아스키 코드로 65이므로, 바이트로는 01000001처럼 출력되어야 하지만, 우리의 컴퓨터는 이를 OIOOOOOI의 형태로 저장한다. I와 O로만 입력된 "바이트"를 아스키를 이용해 번역할 수 있겠는가? 모든 "바이트"는 출력이 가능한 형태로만 주어진다(32 ≤ 바이트 ≤ 126). 주의할 점은 번역된 문자열의 처음과 끝에는 공백이 없으나, 문자열 사이에는 공백이 있을 수도 있다. 입력 :입력의 첫 번째 줄에는 테스트 케이스의 개수 T가..

26560번: Periods
백준/문제2024. 7. 26. 13:5326560번: Periods

문제 출처 : https://www.acmicpc.net/problem/26560 언어 : Kotlin 문제 설명 :Eric gets distracted so sometimes he forgets to put periods at the end of his sentences. To help him out, you are to put a period at the end of his sentences if the period is not already present. 입력 :The first line of input will contain a single integer n that indicates the number of lines to follow. Each line will consist of a sen..

에러: the following options were not recognized by any processor: '[dagger.fastinit, kapt.kotlin.generated]'
개발/안드로이드 에러2024. 7. 25. 16:28에러: the following options were not recognized by any processor: '[dagger.fastinit, kapt.kotlin.generated]'

the following options were not recognized by any processor: '[dagger.fastinit, kapt.kotlin.generated]' Hilt를 kapt로 적용시키다 발생한 오류다.아니 오류까진 아니고 경고창에 해당한다.  https://stackoverflow.com/questions/70550883/warning-the-following-options-were-not-recognized-by-any-processor-dagger-f warning : The following options were not recognized by any processor: '[dagger.fastInit, kapt.kotlin.generated]'I get this w..

에러: 2 files found with path 'meta-inf/gradle/incremental.annotation.processors' from inputs:
개발/안드로이드 에러2024. 7. 25. 16:21에러: 2 files found with path 'meta-inf/gradle/incremental.annotation.processors' from inputs:

Hilt 라이브러리를 적용하다 생긴 오류.  1번째 시도 : build.gradle.kts의 android {} 블록 내부에 META-INF 추가StackOverFlow에서 답변을 찾아본 결과 build.gradle.kts의 android {} 블록 내부에 있는 packaging {} 블록에 annotation.processors 관련한 META-INF를 추가하라는 내용이 존재했다. 이를 보고 작성한 것인지 한 한글로 된 블로그에도 다음과 같은 해결법이 적혀있었다.packaging { resources { excludes += "/META-INF/{AL2.0,LGPL2.1}" // ▽ Add this one. excludes += "/META-INF/gradle..

4446번: ROT13
백준/문제2024. 7. 25. 14:074446번: ROT13

문제 출처 : https://www.acmicpc.net/problem/4446 언어 : Kotlin 문제 설명 :간달프는 여러 종족의 언어를 꽤 오랜 시간 동안 공부했다. 최근에 간달프는 해커들이 사용하는 언어인 ROT13을 공부했다. 이 언어는 영어와 문법이 같지만, 알파벳의 순서를 어떤 규칙을 이용해서 바꾸는 것이다. 모음은 총 6개가 있다. (a i y e o u) 모음은 각 위치에서 세 번째 오른쪽 위치에 있는 모음으로 바꾼다. 위의 수열은 사이클이라서 마지막과 첫 위치는 서로 붙어있는 것이다. 이때, 대소문자는 유지해야 한다. 자음도 모음과 비슷하게 바꾸면 된다. (b k x z n h d c w g p v j q t s r l m f) 자음은 각 위치에서 열번 위치에 있는 자음으로 바꾼다. ..

16205번: 변수명
백준/문제2024. 7. 25. 12:1716205번: 변수명

문제 출처 : https://www.acmicpc.net/problem/16205 언어 : Kotlin 문제 설명 :변수명을 정하는 표기법은 여러 가지가 있다. 카멜 표기법 (Camel Case): 각 단어의 첫 글자를 대문자로 적는다. 단, 가장 첫 글자는 소문자를 사용한다. 예시: camelCase, variableN, thisIsCamelCase, howToSolveThisProblem 스네이크 표기법 (Snake Case): 소문자만 사용하고, 각 단어의 사이에 언더바(_)를 넣어서 적는다. 예시: snake_case, variable_n, this_is_snake_case, how_to_solve_this_problem 파스칼 표기법 (Pascal Case): 카멜 표기법과 같지만, 가장 첫 글..

10932번: SHA-512
백준/문제2024. 7. 24. 16:4210932번: SHA-512

문제 출처 : https://www.acmicpc.net/problem/10932 언어 : Kotlin 문제 설명 :문자열 S가 주어졌을 때, SHA-512 해시값을 구하는 프로그램을 작성하시오. 입력 :첫째 줄에 문자열 S가 주어진다. S는 알파벳 대문자와 소문자, 그리고 숫자로만 이루어져 있으며, 길이는 최대 50이다. 출력 :첫째 줄에 S의 SHA-512 해시값을 출력한다. 제한 사항 :시간 제한 : 1초메모리 제한 : 256MB 입출력 예 :입력출력Baekjoon40529e337a46dadc9473d7ed1b16c74868c996d79573c75784e6da37a51394abecfe26414e5097873c31de0dae0b1ef5dab7718d46aa629da3a72c80a0eeeef2 풀이 :..

14174번: Block Game
백준/문제2024. 7. 24. 16:3914174번: Block Game

문제 출처 : https://www.acmicpc.net/problem/14174 언어 : Kotlin 문제 설명 :Farmer John is trying to teach his cows to read by giving them a set of N spelling boards typically used with preschoolers (1≤N≤100). Each board has a word and an image on each side. For example, one side might have the word 'cat' along with a picture of a cat, and the other side might have the word 'dog' along with a picture of a ..

5949번: Adding Commas
백준/문제2024. 7. 23. 14:285949번: Adding Commas

문제 출처 : https://www.acmicpc.net/problem/5949 언어 : Kotlin 문제 설명 :Bessie is working with large numbers N (1  입력 :Line 1: A single integer: N 출력 :Line 1: The integer N with commas inserted before each set of three digits except the first digits (as traditionally done in many cultures) 제한 사항 :시간 제한 : 1초메모리 제한 : 128MB 입출력 예 :입력출력153920529153,920,529 풀이 : import java.io.BufferedReaderimport java.io.Bu..

26731번: Zagubiona litera
백준/문제2024. 7. 23. 14:2526731번: Zagubiona litera

문제 출처 : https://www.acmicpc.net/problem/26731 언어 : Kotlin 문제 설명 :Bajtosia pracuje w przedszkolu jako nauczycielka angielskiego. Dzisiaj na lekcji dzieci mają poznać litery alfabetu angielskiego. Bajtosia przygotowała na tę lekcję 26 specjalnych tabliczek, z których każda zawierała jedną literę alfabetu. Niestety w ostatniej chwili Bajtosia zauważyła, że ma jedynie 25 tabliczek. Jedna z nich musi..

image