摘要:
#include#include#includeusing namespace std;char ss[33];int b[1002][1002],qian[1002],hou[1002];int main(){ int i,j,n,m,t; scanf("%d",&t); while(t--) { scanf("%d%d",&n,&m); memset(b,0,sizeof(b)); for(i=1;i=2&&b[i][qian[j]-1]>=b[i][j]) qian[j]=qian[q... 阅读全文