pat 1056

一开始理解错了题意,觉得第二行的第i个数是第一行数的order,其实是根据第二行排序,例如第二行第一个数是6,就是第一行6个数做为第一组第一号 因此这样看用queue是更好的选择node #include<stdio.h> #include<algorithm> #include<vector> #define SIZE 1000 using namespace std; struct mice
相关文章
相关标签/搜索