Result

WA

Duration

5690ms

Code [DL]

import java.util.Scanner

val input = Scanner(System.`in`)
fun main(args: Array<String>) {
    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((d*h*l+e*i*j+f*g*k-f*h*j-e*g*l-d*i*k)/6)
}

stdin

99 50 40
38 11 67
23 42 51
93 04 35

stdout

0

stderr

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

ptrace