Home 백준 - 10952 A+B - 5
Post
Cancel

백준 - 10952 A+B - 5

문제

10952 A+B - 5

screencapture

kotlin code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import java.util.*

fun main(args: Array<String>) {
    q10952();
}

fun q10952() = with(Scanner(System.`in`)) {
    val inputs = LinkedList<Int>()
    while (true) {
        val first = nextInt()
        val second = nextInt()
        if(first == 0 && second == 0) break;
        inputs.add(first + second);
    }
    inputs.forEach {println(it)}
}
This post is licensed under CC BY 4.0 by the author.

백준 - 10951 A+B - 4

백준 - 2480 주사위 세개