本帖最后由 icecut 于 2011-5-9 12:22 编辑
lz连测试样例都不会给出...
楼主连现实应用中啥是固定的,啥是不固定的都不知道.
我替你出吧:
xxxStruct test_a[] =
{
{1,2,3},
{4,5,6},
{1,4,2,6},
{7,8,9,1},
{1,4,2,6},
{1,3,5},
{2,4,6},
{3,5,7}
};
结果:
xxxStruct test_a[] =
{
{1,2,3},
{4,5,6},
{7,8,9,1},
{1,3,5},
{2,4,6},
{3,5,7}
};
样例2
xxxStruct test_a[] =
{
{1,2,3},
{4,5,6},
{7,8,9,1},
{1,4,2,6},
{1,3,5},
{2,4,6},
{3,5,7}
};
结果:
xxxStruct test_a[] =
{
{1,2,3},
{4,5,6},
{7,8,9,1},
{1,3,5},
{2,4,6},
{3,5,7}
};
显然他对,你错. |