04 2014 档案
摘要:http://codeforces.com/contest/426/problem/B 题意大概就是对称有关,要注意的是,当行数为奇数的时候,答案就是行数本身 #include#include#include#include#define maxn 1005u...
阅读全文
摘要:RT,我就不解释了,题目连接http://acm.hdu.edu.cn/showproblem.php?pid=2602。 初学01背包的人可以做做#include#include#include#include#define maxn 1005using n...
阅读全文
摘要:快速排序 #include int a[101],n;//定义全局变量,这两个变量需要在子函数中使用void quicksort(int left,int right){ int i,j,t,temp; if(left>right) ...
阅读全文