Demo entry 6360438

cpp

   

Submitted by anonymous on May 01, 2017 at 16:58
Language: C++. Code size: 275 Bytes.

while(t--){                   //对于每个约束(包括边和点)都需建立新一层图,即更新现有矩阵
        for(int i=G.vernum;i<G.vernum+Vn;i++){
            for(int j=G.vernum;j<G.vernum+Vn;j++){
                G.edge[i][j]=G.edge[i-Vn][j-Vn];
            }
        }
        G.vernum=G.vernum+Vn;
    }

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).