題庫-001

#include<cstdio> #include<algorithm> using namespace std; struct node { int q;//表示價格 int p;//表示數字 }; node c[11];//c[i].p表示第i個的數字價格,c[i].q表示第i個數字 bool cmp(node a,node b)//用於sort函數將結構體排序 { if(a.q
相關文章
相關標籤/搜索