Result

WA

Duration

705ms

Code [DL]

i=-2
a=空配列
標準入力取得した時には(s)
t=sを文字列分解
i=i+1
もしi=(-1)なら
 f=(ASC([email protected])-ASC(0))*10+(ASC([email protected])-ASC(0))
 g=(ASC([email protected])-ASC(0))*10+(ASC([email protected])-ASC(0))
 h=(ASC([email protected])-ASC(0))*10+(ASC([email protected])-ASC(0))
違えば
 a[3*i]=(ASC([email protected])-ASC(0))*10+(ASC([email protected])-ASC(0))-f
 a[3*i+1]=(ASC([email protected])-ASC(0))*10+(ASC([email protected])-ASC(0))-g
 a[3*i+2]=(ASC([email protected])-ASC(0))*10+(ASC([email protected])-ASC(0))-h
 もし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

12 17 91
35 44 87
23 16 09
01 13 35

stdout

NaN

stderr

strace