- 博客(5)
- 收藏
- 关注
原创 区间素数筛选法 joj 1928 Prime Distance
1928: Prime DistanceResultTIME LimitMEMORY LimitRun TimesAC TimesJUDGE3s8192K7223StandardThe branch of mathematics called number theory is about propertie
2011-10-31 14:03:03 695 1
原创 poj 1328 贪心
Radar InstallationTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 28579 Accepted: 6263DescriptionAssume the coasting is an infinite straight line. Land is
2011-10-29 13:13:51 479
原创 01背包问题中恰好为重量T
重量恰好为T:#include #include #include #include using namespace std;int T,M;int t[101];int m[101];int d[101][1001];int max;int main (){ while(scanf("%d%d",&T,&M)==2) {
2011-10-28 12:12:20 605
原创 POJ 1007 DNA Sorting
DNA SortingTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 59510 Accepted: 23481DescriptionOne measure of ``unsortedness'' in a sequence is the number o
2011-10-27 15:09:35 312
原创 归并排序求逆序数
#include #include #include using namespace std;int cnt;void mergesort(int i,int j,int *a,int *b){ if(j-i>1) { int m=(i+j)/2; mergesort(i,m,a,b); merges
2011-10-27 14:11:30 296
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人