12 lines
222 B
Kotlin
Vendored
12 lines
222 B
Kotlin
Vendored
// IGNORE_BACKEND: JS_IR
|
|
fun box(): String {
|
|
val a = LongArray(5)
|
|
val x = a.iterator()
|
|
var i = 0
|
|
while (x.hasNext()) {
|
|
if (a[i] != x.nextLong()) return "Fail $i"
|
|
i++
|
|
}
|
|
return "OK"
|
|
}
|