• Home
  • About
    • Moon photo

      Moon

      개발자는 자고 싶다.

    • Learn More
    • Twitter
    • Facebook
    • Instagram
    • Github
    • Steam
  • Posts
    • All Posts
    • All Tags
  • Projects

백준 - 3052 나머지

07 Jun 2022

Reading time ~1 minute

문제

3052 나머지

screencapture

답

kotlin code

import java.util.*

fun main() {
    q3052()
}

fun q3052() = with(Scanner(System.`in`)) {
    println(Array(10) {nextInt() % 42}.toSet().count())
}


baekjoonkotlin코틀린백준브론즈수학사칙연산 Share Tweet +1