洛谷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];
相关文章
相关标签/搜索