C++
miomiomiomio
这个作者很懒,什么都没留下…
展开
-
杭电ACM第1007题——Quoit Design
WA #include #include #include using namespace std; const int SIZE = 100005; typedef struct { double x; double y; }point; point p[SIZE], c[SIZE]/*用作辅助数组*/; double getDistance(point &a, point原创 2017-03-23 14:30:27 · 698 阅读 · 0 评论 -
杭电ACM第1009题——FatMouse' Trade
#include #include #include using namespace std; typedef struct thing{ int value; int weight; double vw; }; bool cmp(thing a,thing b){ return a.vw>b.vw; } int main() { int m,n,i; double sum;原创 2017-03-24 13:19:15 · 485 阅读 · 0 评论