摘要: 这道题目思维+基础,好题目拓扑排序以后看到sij就要想到连续和转化为前缀和之差的思想,通过表格得到两两前缀和的大小关系,然后通过拓扑排序得到前缀和的大小序列,确定每个前缀和的大小,最后得到结果#include <iostream> #include <cstdio> #include <string.h> using namespace std; const int maxn=11; int e[maxn][maxn],b[maxn],in[maxn],sol[maxn]; int n,loc; void topo()//基于栈的topo排序 { int i 阅读全文
posted @ 2013-03-01 17:46 LJ_COME!!!!! 阅读(159) 评论(0) 推荐(0)