上一页 1 ··· 3 4 5 6 7
摘要: http://codeforces.com/contest/426/problem/B 题意大概就是对称有关,要注意的是,当行数为奇数的时候,答案就是行数本身 #include#include#include#include#define maxn 1005u... 阅读全文
posted @ 2014-04-28 08:16 MrYu4 阅读(14) 评论(0) 推荐(0) 编辑
摘要: RT,a56爆大奖在线娱乐就不解释了,题目连接http://acm.hdu.edu.cn/showproblem.php?pid=2602。 初学01背包的人可以做做#include#include#include#include#define maxn 1005using n... 阅读全文
posted @ 2014-04-27 21:37 MrYu4 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 快速排序 #include int a[101],n;//定义全局变量,这两个变量需要在子函数中使用void quicksort(int left,int right){ int i,j,t,temp; if(left>right) ... 阅读全文
posted @ 2014-04-27 18:27 MrYu4 阅读(16) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7