网上说的是什么基尔霍夫矩阵,没学过这个,打个表找下规律,发现 w[i]=3*w[i-1]-w[i-2]+2; 然后写个高精直接递推就行了 //By BLADEVIL var n :longint; a, b, c :..] of longint; w :..] of ansistring; i :longint; function plus(s1,s2:ansistring):ansistring; var len :longint; i :longint; s :ansistring; beg…