130726Codeforces练习
A - Rank List
水题,结构体排序,要注意排序方式,当前数相等时,按后数从小到大排列,否则按前数从大到小排列。
#include
#include
#include
#include
#include
#include
#include
using namespace std;
struct xl
{
int x,y,z;
} s[55];
bool cmp(xl x,xl
原创
2013-07-27 11:33:22 ·
997 阅读 ·
0 评论