by@kurgm
MLE
1345ms
a=`dd`.split.map &.to_i p (0..8).map{|z|z/6*(a[z]-=a[z+3])*(a[p=-~z%3+3]*a[s=-~p%3]-a[p-3]*a[3+s])}.sum/6
38 92 35 79 03 58 53 50 74 03 25 02
#<Errno:Error writing file: Out of memory>#<Errno:Error writing file: Out of memory>#<Errno:Error writing file: Out of memory>cc: error: S-lice40U-I-nt841.o: No such file or directory cc: error: P-ointer40U-I-nt841.o: No such file or directory cc: error: A-rgumentE-rror.o: No such file or directory cc: error: C-allS-tack.o: No such file or directory cc: error: A-rray40P-ointer40V-oid4141.o: No such file or directory cc: error: P-ointer40P-ointer40V-oid4141.o: No such file or directory cc: error: E-xception.o: No such file or directory cc: error: P-ointer40L-ibU-nwind5858E-xception41.o: No such file or directory cc: error: U-I-nt64.o: No such file or directory cc: error: U-I-nt8.o: No such file or directory cc: error: D-ir.o: No such file or directory cc: error: S-tring.o: No such file or directory cc: error: G-C-.o: No such file or directory cc: error: E-rrno.o: No such file or directory cc: error: S-tring5858B-uilder.o: No such file or directory cc: error: S-lice40T-41.o: No such file or directory cc: error: I-O-5858E-ncoder.o: No such file or directory cc: error: I-conv.o: No such file or directory cc: error: M-ath.o: No such file or directory cc: error: I-nt32.o: No such file or directory cc: error: S-taticA-rray40U-I-nt84432102441.o: No such file or directory cc: error: I-ndexE-rror.o: No such file or directory cc: error: C-har.o: No such file or directory cc: error: I-nvalidB-yteS-equenceE-rror.o: No such file or directory cc: error: S-taticA-rray40U-I-nt8443212941.o: No such file or directory cc: error: D-ivisionB-yZ-ero.o: No such file or directory cc: error: A-rray40S-tring41.o: No such file or directory cc: error: P-ointer40S-tring41.o: No such file or directory cc: error: S-taticA-rray40I-nt8443225641.o: No such file or directory cc: error: P-ointer40I-nt841.o: No such file or directory cc: error: P-ointer40V-oid41.o: No such file or directory cc: error: F-iber.o: No such file or directory cc: error: T-hread.o: No such file or directory cc: error: S-et40T-hread41.o: No such file or directory cc: error: H-ash40T-hread4432N-il41.o: No such file or directory cc: error: P-ointer40H-ash58-5c8fd5776cf345ec94b91bf7a5f7e50f.o: No such file or directory cc: error: A-rray40I-nt3241.o: No such file or directory cc: error: P-ointer40I-nt3241.o: No such file or directory cc: error: C-rystal5858H-asher.o: No such file or directory cc: error: S-taticA-rray40U-I-nt644432241.o: No such file or directory cc: error: P-ointer40U-I-nt6441.o: No such file or directory cc: error: H-ash5858E-ntry40T-hread4432N-il41.o: No such file or directory cc: error: N-il.o: No such file or directory cc: error: D-eque40F-iber41.o: No such file or directory cc: error: P-ointer40F-iber41.o: No such file or directory cc: error: E-vent5858B-ase.o: No such file or directory cc: error: C-rystal5858S-ystem5858R-andom.o: No such file or directory cc: error: T-ime5858S-pan.o: No such file or directory cc: error: I-nt64.o: No such file or directory cc: error: S-cheduler.o: No such file or directory cc: error: E-vent5858E-vent.o: No such file or directory cc: error: L-ibC-5858T-imeval.o: No such file or directory cc: error: I-O-5858F-ileD-escriptor.o: No such file or directory cc: error: I-O-5858F-ileD-escriptor43.o: No such file or directory cc: error: I-O-5858E-rror.o: No such file or directory cc: error: L-ibE-vent25858E-ventF-lags.o: No such file or directory cc: error: I-O-5858T-imeout.o: No such file or directory cc: error: R-ange40B-4432E-41.o: No such file or directory cc: error: R-ange40I-nt324432I-nt3241.o: No such file or directory cc: error: E-xception43.o: No such file or directory cc: error: E-N-V-.o: No such file or directory cc: error: F-ile.o: No such file or directory cc: error: C-har5858R-eader.o: No such file or directory cc: error: U-I-nt32.o: No such file or directory cc: error: D-ebug5858E-L-F-.o: No such file or directory cc: error: D-ebug5858E-L-F-5858E-rror.o: No such file or directory cc: error: D-ebug5858E-L-F-5858E-ndianness.o: No such file or directory cc: error: D-ebug5858E-L-F-5858O-S-A-B-I-.o: No such file or directory cc: error: S-taticA-rray40U-I-nt84432409641.o: No such file or directory cc: error: I-O-5858E-O-F-E-rror.o: No such file or directory cc: error: D-ebug5858E-L-F-5858I-dent.o: No such file or directory cc: error: U-I-nt16.o: No such file or directory cc: error: I-O-5858B-yteF-ormat5858B-igE-ndian.o: No such file or directory cc: error: S-taticA-rray40U-I-nt84432241.o: No such file or directory cc: error: I-O-5858B-yteF-ormat5858L-ittleE-ndian.o: No such file or directory cc: error: D-ebug5858E-L-F-5858K-lass.o: No such file or directory cc: error: S-taticA-rray40U-I-nt84432841.o: No such file or directory cc: error: A-rray40D-ebug5858E-L-F-5858S-ectionH-eader41.o: No such file or directory cc: error: P-ointer40D-ebug5858E-L-F-5858S-ectionH-eader41.o: No such file or directory cc: error: I-O-5858S-eek.o: No such file or directory cc: error: D-ebug5858E-L-F-5858S-ectionH-eader.o: No such file or directory cc: error: I-O-5858D-ecoder.o: No such file or directory cc: error: D-ebug5858D-W-A-R-F-5858L-ineN-umbers.o: No such file or directory cc: error: A-rray40A-rray40D-d5580c0e9cb0bd8af7e90c96221706e1.o: No such file or directory cc: error: P-ointer40A-rray4-6533bdad81433bcf155b99ac74756686.o: No such file or directory cc: error: D-ebug5858D-W-A-R-F-5858L-ineN-umbers5858S-equence.o: No such file or directory cc: error: A-rray40T-uple40S-5992430a1a7ef1627717adfb71332538.o: No such file or directory cc: error: P-ointer40T-uple4-13415771527eed75ea796bf4f3711255.o: No such file or directory cc: error: A-rray40U-I-nt841.o: No such file or directory cc: error: I-nt8.o: No such file or directory cc: error: S-taticA-rray40U-I-nt84432141.o: No such file or directory cc: error: D-ebug5858D-W-A-R-F-.o: No such file or directory cc: error: D-ebug5858D-W-A-R-F-5858L-ineN-umbers5858R-egister.o: No such file or directory cc: error: D-ebug5858D-W-A-R-F-5858L-ineN-umbers5858R-ow.o: No such file or directory cc: error: A-rray40D-ebug585-1d195a7f864d2d3790ebeadd84b7a4df.o: No such file or directory cc: error: P-ointer40D-ebug5-a50eac5c43900f6bca76f68ff8c8549d.o: No such file or directory cc: error: D-ebug5858D-W-A-R-F-5858L-N-E-.o: No such file or directory cc: error: D-ebug5858D-W-A-R-F-5858L-N-S-.o: No such file or directory cc: error: D-ebug5858D-W-A-R-F-5858S-trings.o: No such file or directory cc: error: A-rray40T-uple40U-997f9e533f193da5e605a2014e7947d9.o: No such file or directory cc: error: P-ointer40T-uple4-aa2454898accd295538d997a0365d41d.o: No such file or directory cc: error: D-ebug5858D-W-A-R-F-5858I-nfo.o: No such file or directory cc: error: D-ebug5858D-W-A-R-F-5858A-bbrev.o: No such file or directory cc: error: A-rray40D-ebug5858D-W-A-R-F-5858A-bbrev41.o: No such file or directory cc: error: P-ointer40D-ebug5858D-W-A-R-F-5858A-bbrev41.o: No such file or directory cc: error: A-rray40D-ebug585-b448de41619185732a02b2b0c778beb9.o: No such file or directory cc: error: P-ointer40D-ebug5-038cd8f166075bfacc819464bf65667a.o: No such file or directory cc: error: D-ebug5858D-W-A-R-F-5858A-bbrev5858A-ttribute.o: No such file or directory cc: error: A-rray40T-uple40D-2934b2835f929d23ac3adb7e5b7b0afe.o: No such file or directory cc: error: P-ointer40T-uple4-6ff119ef58145d1144587389190a4e25.o: No such file or directory cc: error: D-ebug5858D-W-A-R-F-5858F-O-R-M-.o: No such file or directory cc: error: U-nicode.o: No such file or directory cc: error: U-nicode5858C-aseO-ptions.o: No such file or directory cc: error: A-rray40T-uple40I-nt324432I-nt324432I-nt324141.o: No such file or directory cc: error: P-ointer40T-uple40I-nt324432I-nt324432I-nt324141.o: No such file or directory cc: error: H-ash40I-nt324432-c36c7b59ada9577e04b34b7156d26117.o: No such file or directory cc: error: P-ointer40H-ash58-20170b0dcbfcdda132d3c3911ed0b4b4.o: No such file or directory cc: error: P-rettyP-rint5858T-ext.o: No such file or directory cc: error: P-rettyP-rint5858B-reakable.o: No such file or directory cc: error: L-E-B-R-eader.o: No such file or directory cc: error: L-ibU-nwind5858A-ction.o: No such file or directory cc: error: L-ibU-nwind5858R-easonC-ode.o: No such file or directory cc: error: C-allS-tack5858R-epeatedF-rame.o: No such file or directory cc: error: C-rystal.o: No such file or directory [31;1mError: [0m[1mexecution of command failed with code: 1: `cc "${@}" -o '/root/.cache/crystal/crystal-run-CODE.tmp' -rdynamic -lpcre -lgc -lpthread /usr/share/crystal/src/ext/libcrystal.a -levent -lrt -ldl -L/usr/lib -L/usr/local/lib`[0m