| Task: | Backpacking |
| Sender: | aalto26am_033 |
| Submission time: | 2026-08-31 16:59:24 +0300 |
| Language: | Scala |
| Status: | READY |
| Result: | RUNTIME ERROR |
| test | verdict | time | |
|---|---|---|---|
| #1 | RUNTIME ERROR | 0.73 s | details |
| #2 | RUNTIME ERROR | 0.73 s | details |
| #3 | RUNTIME ERROR | 0.73 s | details |
| #4 | RUNTIME ERROR | 0.72 s | details |
Compiler report
warning: there was one deprecation warning; re-run with -deprecation for details one warning found
Code
object Sum {
def main(args: Array[String]): Unit = {
val Array(a,b) = readLine.split(" ").map(_.toInt)
println(a+b)
}
}
// https://cses.fi/howto
//def Backpacking(A:Int,B:Int): Int = A+B
/*
def StoneGame(A:Int, B:Int,res: Boolean): String =
if A > B then return StoneGame(B,A,res)
if A == 2 && B > 1 then
!res
if A == 1 && B > 1 then
res
else if A == 1 && B == 1 then
!res
else if A == 0 && B == 1 then
res
else if A == 0 && B == 0 then
!res
end StoneGame
*/Test details
Test 1
Verdict: RUNTIME ERROR
| input |
|---|
| 3 5 |
| correct output |
|---|
| 8 |
| user output |
|---|
| (empty) |
Error:
java.lang.ClassNotFoundException: Week1 at scala.reflect.internal.util.ScalaClassLoader$c...
Test 2
Verdict: RUNTIME ERROR
| input |
|---|
| 571335 750047 |
| correct output |
|---|
| 1321382 |
| user output |
|---|
| (empty) |
Error:
java.lang.ClassNotFoundException: Week1 at scala.reflect.internal.util.ScalaClassLoader$c...
Test 3
Verdict: RUNTIME ERROR
| input |
|---|
| 744471 719178 |
| correct output |
|---|
| 1463649 |
| user output |
|---|
| (empty) |
Error:
java.lang.ClassNotFoundException: Week1 at scala.reflect.internal.util.ScalaClassLoader$c...
Test 4
Verdict: RUNTIME ERROR
| input |
|---|
| 308833 436123 |
| correct output |
|---|
| 744956 |
| user output |
|---|
| (empty) |
Error:
java.lang.ClassNotFoundException: Week1 at scala.reflect.internal.util.ScalaClassLoader$c...
