
贪心
KLFTESPACE
这个作者很懒,什么都没留下…
展开
-
Commando War Uva-11729
#include<bits/stdc++.h> using namespace std; const int maxn = 1000 + 5; int n, m, cnt=0; struct Node{ int b, j; bool operator < (const Node& p)const { return j >...原创 2019-03-26 17:20:07 · 140 阅读 · 0 评论 -
Monkey and Banana HDU - 1069
//贪心 #include<cstdio> #include<algorithm> using namespace std; struct Brick { int x,y,z;//长宽高 }brick[200]; int ant; void UpDate(int x,int y,int z) { brick[ant].x = x; brick[ant]...原创 2019-09-06 15:32:43 · 140 阅读 · 0 评论