一种排序 NYOJ

#include  
#include  
#include  
  
using namespace std;  
  
struct cc{  
    int n;  
    int l;  
    int w;  
}shape[1005];  
  
int cmp(struct cc x,struct cc y)  
{  
    if(x.n == y.n)  
        if(x.l == y.l)  
            return x.w<=y.w;  
        else  
            return x.l<=y.l;  
    return x.n<=y.n;  
}  
  
int main()  
{  
    int n;  
    int m;  
    int t;  
    int i;  
    scanf("%d",&n);  
    while(n--)  
    {  
        scanf("%d",&m);  
        for(i=0; i

你可能感兴趣的:(一种排序 NYOJ)