Result

WA

Duration

719ms

Code [DL]

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

stdin

24 05 28
14 03 05
21 54 15
88 09 61

stdout

stderr

strace