Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 사파리 월드
- 코틀린
- 파이썬
- 25083
- 18108
- 10926
- 개수 세기
- 백준1107
- Android
- 디버그심볼
- 2525
- BitMasking
- 기본메신저
- Counting The number
- 10430
- 백준1476
- debugSymbolLevel
- 백준
- 1330
- PreferenceManager
- Class Delegation
- dp
- baekjoon
- kotlin
- 꼬마 정민
- 브루트포스
- 새싹
- 10807
- 백준3085
- safari world
Archives
- Today
- Total
세상을 더 좋게
[Baekjoon] 2420 Safari World (Kotlin) 사파리 월드 (코틀린) 본문
Algorithm/[solved.ac] 새싹 Class
[Baekjoon] 2420 Safari World (Kotlin) 사파리 월드 (코틀린)
나는SOU 2024. 3. 1. 19:25https://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 type.
'Algorithm > [solved.ac] 새싹 Class' 카테고리의 다른 글
[Baekjoon] 11382 The kid 'JungMin' (Kotlin) 꼬마 정민 (코틀린) (0) | 2024.03.01 |
---|---|
[Baekjoon] 25083 새싹 (Kotlin) (0) | 2024.03.01 |
[Baekjoon] 오늘 날짜 코틀린 (0) | 2024.02.11 |