22 lines
263 B
Kotlin
Vendored
22 lines
263 B
Kotlin
Vendored
// IGNORE_BACKEND: JVM_IR
|
|
var field: Int = 0
|
|
|
|
fun next(): Int {
|
|
return ++field
|
|
}
|
|
|
|
|
|
fun box(): String {
|
|
val task: String
|
|
|
|
do {
|
|
if (next() % 2 == 0) {
|
|
task = "OK"
|
|
break
|
|
}
|
|
}
|
|
while (true)
|
|
|
|
return task
|
|
}
|