문제
2525 오븐 시계
답
kotlin code
import java.util.*
fun main(args: Array<String>) = with(Scanner(System.`in`)) {
q2525(nextInt(), nextInt(), nextInt());
}
fun q2525(hour: Int, min: Int, remainMin: Int): Unit {
var totalMin = hour * 60 + min + remainMin;
println(((totalMin / 60) % 24).toString() + " " + (totalMin % 60).toString())
}