Result

WA

Duration

5709ms

Code [DL]

import java.util.Scanner
fun main(args: Array<String>) {
    val input = Scanner(System.`in`)
    var a : Int = input.nextInt()
    var b : Int = input.nextInt()
    var c : Int = input.nextInt()
    var d : Int = input.nextInt()
    var e : Int = input.nextInt()
    var f : Int = input.nextInt()
    var g : Int = input.nextInt()
    var h : Int = input.nextInt()
    var i : Int = input.nextInt()
    var j : Int = input.nextInt()
    var k : Int = input.nextInt()
    var l : Int = input.nextInt()
    d=-a;e=-b;f=-c;
    g=-a;h=-b;i=-c;
    j=-a;k=-b;l=-c;
    print((a*h*l+e*i*j+g*k*f-f*h*j-e*g*l-d*i*k)/6)
}

stdin

84 26 37
60 62 38
41 01 15
11 85 55

stdout

26936

stderr

/tmp/code.kt:7:19: warning: variable 'd' initializer is redundant
    var d : Int = input.nextInt()
                  ^
/tmp/code.kt:8:19: warning: variable 'e' initializer is redundant
    var e : Int = input.nextInt()
                  ^
/tmp/code.kt:9:19: warning: variable 'f' initializer is redundant
    var f : Int = input.nextInt()
                  ^
/tmp/code.kt:10:19: warning: variable 'g' initializer is redundant
    var g : Int = input.nextInt()
                  ^
/tmp/code.kt:11:19: warning: variable 'h' initializer is redundant
    var h : Int = input.nextInt()
                  ^
/tmp/code.kt:12:19: warning: variable 'i' initializer is redundant
    var i : Int = input.nextInt()
                  ^
/tmp/code.kt:13:19: warning: variable 'j' initializer is redundant
    var j : Int = input.nextInt()
                  ^
/tmp/code.kt:14:19: warning: variable 'k' initializer is redundant
    var k : Int = input.nextInt()
                  ^
/tmp/code.kt:15:19: warning: variable 'l' initializer is redundant
    var l : Int = input.nextInt()
                  ^

strace