(curl -s https://eval.dan.co.jp/friends/2026/11/07/b943ba865c88a684f1008cac86c184abf700467b63a3564a2a61f55f428f191e | sed "s/^python3 -c '//; s/'$//"; echo; printf '%s\n' 'Ea=[[-1000]*8 for _ in range(11)] Eb=[[-1000]*8 for _ in range(11)] SS=0 for i in range(72): if Z[i][best] not in (3,4):continue u=U[best][i];v=V[best][i] a=u//3;b=v//3 ap=a-dx;bp=b-dy t=TT[i];p=PP[i] ep=(Ea if p==1 else Eb)[a][b] eo=(Eb if p==1 else Ea)[a][b] epg=(Ea if p==1 else Eb)[ap][bp] if 0<=ap<=10 and 0<=bp<=7 else -1000 eog=(Eb if p==1 else Ea)[ap][bp] if 0<=ap<=10 and 0<=bp<=7 else -1000 qs=(1 if 4<=t-ep<=12 else 0)+(1 if 4<=t-epg<=12 else 0) qo=(1 if 1<=t-eo<=6 else 0)+(1 if 1<=t-eog<=6 else 0) tk=1 if qs>=1 and qo==0 else 0 SS+=tk print(i,t,p,a,b,ap,bp,ep,eo,epg,eog,qs,qo,tk) if p==1:Ea[a][b]=t else:Eb[a][b]=t print("SS",SS)') | python3