洛谷P1086花生採摘題解--zhengjun

題面傳送門c++ 思路 由於只有惟一的順序才完全部的花生,因此直接模擬便可web 代碼 #include<bits/stdc++.h> using namespace std; int n,m,t; int k; struct zj{ int x,y,sum; bool operator < (const zj &p)const{ return sum>p.sum; } }a[401];
相關文章
相關標籤/搜索