Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.*
- // Complete the func function below.
- fun func(s: String, n: Long): Long {
- return 0
- }
- fun main(args: Array<String>) {
- val scan = Scanner(System.`in`)
- println("0. Введите бесконечную строку:")
- val s = scan.nextLine()
- println("1. Введите ограничитель:")
- val n = scan.nextLine().trim().toLong()
- val result = func(s, n)
- println(result)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement