Result

AC

Duration

716ms

Code [DL]

a=[]
f=[]
i=-2
標準入力取得した時には(s)
t=sを" "で区切る
i=i+1
もしi<0なら
 f=t
違えば
 a[3*i][email protected]@0
 a[3*i+1][email protected]@1
 a[3*i+2][email protected]@2
 もしi=2なら
  ([email protected]*[email protected]*[email protected][email protected]*[email protected]*[email protected][email protected]*[email protected]*[email protected]@2*[email protected]*[email protected]@1*[email protected]*[email protected]@0*[email protected]*[email protected])/6と表示

stdin

82 03 94
01 63 97
27 83 83
07 40 46

stdout

30178

stderr

strace