自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(3)
  • 收藏
  • 关注

原创 uva 11729 Commando War

贪心算法排序,最后加上长度 #include #include #include using namespace std; struct T{ int b,j; friend bool operator<(const T& p, const T& q){ return p.j > q.j; } }arr[1010]; int main(int argc, char

2014-06-08 23:02:51 501

原创 uva Children's Game

非常巧妙的题目,巧用cmp,注意cmp的重载 #include #include using namespace std; string a[55]; bool cmp(string a, string b){ return a+b > b+a; } int main(int argc, char const *argv[]) { int n; while(cin >

2014-06-08 23:01:08 659

原创 poj Agri-Net

prim算法 #include using namespace std; int m[101][101]; int prim(int k){ int ans = 0, dist[101]; bool vis[101]; for(int i = 1; i < k; i++){ dist[i] = m[0][i]; vis[i] = 0;

2014-06-01 22:22:54 571

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除