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
- 백준
- PreferenceManager
- 1330
- 25083
- dp
- 파이썬
- 코틀린
- BitMasking
- 백준3085
- 백준1476
- 18108
- Class Delegation
- 개수 세기
- 백준1107
- kotlin
- 10430
- baekjoon
- 디버그심볼
- debugSymbolLevel
- 기본메신저
- Counting The number
- 브루트포스
- 꼬마 정민
- 새싹
- 10926
- 10807
- safari world
- 사파리 월드
- Android
- 2525
Archives
- Today
- Total
세상을 더 좋게
[Baekjoon] 11382 The kid 'JungMin' (Kotlin) 꼬마 정민 (코틀린) 본문
Algorithm/[solved.ac] 새싹 Class
[Baekjoon] 11382 The kid 'JungMin' (Kotlin) 꼬마 정민 (코틀린)
나는SOU 2024. 3. 1. 18:00https://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 main() {
val input = readLine()!!.split(" ")
var result: Long = 0
for (i in 0 until input.count()) {
val number = input[i].toLong()
result += number
}
println(result)
}
'Algorithm > [solved.ac] 새싹 Class' 카테고리의 다른 글
[Baekjoon] 2420 Safari World (Kotlin) 사파리 월드 (코틀린) (0) | 2024.03.01 |
---|---|
[Baekjoon] 25083 새싹 (Kotlin) (0) | 2024.03.01 |
[Baekjoon] 오늘 날짜 코틀린 (0) | 2024.02.11 |