일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
- 18108
- 백준3085
- safari world
- 코틀린
- dp
- baekjoon
- 10926
- 10807
- 기본메신저
- Android
- 브루트포스
- 백준
- BitMasking
- 10430
- 파이썬
- 개수 세기
- kotlin
- Counting The number
- 1330
- 2525
- Class Delegation
- debugSymbolLevel
- 25083
- 디버그심볼
- 꼬마 정민
- 백준1476
- 백준1107
- 사파리 월드
- 새싹
- PreferenceManager
- Today
- Total
목록전체 글 (100)
세상을 더 좋게
https://www.acmicpc.net/problem/11723비트마스킹을 활용한 문제.두 가지만 알고 가면 비트마스킹의 사용을 이해하고 위 문제를 풀 수 있다.1. 비트마스킹은 비트를 스위치로 생각하며 Int 기준 최대 32개의 스위치를 가진 상태로 활용하는 사고의 전환 방식2. 메소드 활용 • bitmask = bitmask or (1 shl i) → i번 비트 켜기 • bitmask = bitmask and (1 shl i).inv() → i번 비트 끄기 • bitmask = bitmask xor (1 shl i) → i번 비트 반전 • if (bitmask and (1 shl i) != 0) → i번 비트가 켜져 있는지 확인import java.io.BufferedReaderimport jav..
https://www.acmicpc.net/problem/10807 10807번: 개수 세기 첫째 줄에 정수의 개수 N(1 ≤ N ≤ 100)이 주어진다. 둘째 줄에는 정수가 공백으로 구분되어져있다. 셋째 줄에는 찾으려고 하는 정수 v가 주어진다. 입력으로 주어지는 정수와 v는 -100보다 크거 www.acmicpc.net You have to use count() function block. And you will get simple code, concise code. fun main() { val numberCount = readln().toInt() val numberArray = readln().split(" ") val findNumber = readln().toInt() val collectN..
https://www.acmicpc.net/problem/2420 2420번: 사파리월드 첫째 줄에 두 도메인의 유명도 N과 M이 주어진다. (-2,000,000,000 ≤ N, M ≤ 2,000,000,000) www.acmicpc.net fun main() { val input = readLine()!!.split(" ") val N = input[0].toLong() val M = input[1].toLong() val result = Math.abs(N - M) println(result) } Do you know get absolute value with kotlin? If you get it, this problem is very simple. But be careful to number ty..
https://www.acmicpc.net/problem/11382 11382번: 꼬마 정민 첫 번째 줄에 A, B, C (1 ≤ A, B, C ≤ 1012)이 공백을 사이에 두고 주어진다. www.acmicpc.net We need to concept in overflow to resolve this problem. The number received restricted in 10^15. So we do not use 'Int' but 'Long' type. OVerflow occurs when there are insufficient bits in a binary number representation to portray the result of an arithmetic operation. fun m..
https://www.acmicpc.net/problem/25083 25083번: 새싹 아래 예제와 같이 새싹을 출력하시오. www.acmicpc.net Double quotation marks is good answer in this problem. because double qutation marks used in situation to express raw text. fun main() { println(""" ,r'"7 r`-_ ,' ,/ \. ". L_r' `~\/ | |""") }
https://www.acmicpc.net/problem/10699 10699번: 오늘 날짜 서울의 오늘 날짜를 출력하는 프로그램을 작성하시오. www.acmicpc.net I will solve alogorythme problem in 'solved.ac'. Because that website is interesting me. Rating system, problem categorization. The rating system proveded a gaming-like experience, reminiscent of playing the globally renowned game 'LOL', making solving problems feel like playing a game. Kotlin import..

https://developer.android.com/studio/build/shrink-code?hl=ko#native-crash-support 앱 축소, 난독화 및 최적화 | Android 개발자 | Android Developers 사용하지 않는 코드와 리소스를 삭제하기 위해 출시 빌드에서 코드를 축소하는 방법을 알아보세요. developer.android.com Google Console에서 우리는 이용자들이 어디서 에러가 났는지 확인하기 위해 비정상 종료 항목을 뒤적거리지만, 자세하게 나와 있지 않아 곤혹스러울 때가 많다. 이를 위해 debugSymbolLevel을 추가하여 조금이나마 도움을 받을 수 있는데, 위의 공식홈페이지에 나와있는대로 따라하더라도 적용이 되질 않는다. 정확히 말하면 일련의..
val smsUri = Uri.parse("smsto:" + phoneNumber) //phonNumber에는 01012345678과 같은 구성. val intent = Intent(Intent.ACTION_SENDTO) intent.setData(smsUri) intent.putExtra("sms_body", "") //해당 값에 전달하고자 하는 문자메시지 전달 startActivity(intent) Intent 중 위처럼 ACTION_SENDTO를 이용하면 손쉽게 문자메시지 창으로 이동 및 원하는 메시지를 담을 수 있습니다. 간혹 문자메시지를 보내는 Intent 중에 ACTION_SEND를 이용할 수도 있는데, 제가 이를 사용하지 않는 것은 해당 Intent는 삼성의 기본 문자메시지 앱에만 반응하기 ..