点点滴滴”

导航

2014年8月5日 #

分治 赛程安排

摘要: 问题描述:有n个运动员进行循环赛,要求设计满足一下要求的日程表1、 每两人必须比赛一次且只比赛一次2、 每个选手每天只能比赛一次3、 要求比赛时间尽可能短(即n为偶数时比赛n-1天,n为奇数时比赛n天)一、分治法算法思想,先算n/2的日程表,然后将循环赛日程表左上复制到右下,左下复制到右上,得到n的... 阅读全文

posted @ 2014-08-05 09:55 点点滴滴” 阅读(326) 评论(0) 推荐(0) 编辑

2014年8月4日 #

poj 2886 线段树的更新+反素数

摘要: Who Gets the Most Candies?Time Limit: 5000 MS Memory Limit: 0 KB64-bit integer IO format: %I64d , %I64u Java class name: Main[Submit] [Status] [Discus... 阅读全文

posted @ 2014-08-04 16:49 点点滴滴” 阅读(238) 评论(0) 推荐(0) 编辑

2014年8月1日 #

poj 2777 线段树的区间更新

摘要: Count ColorTime Limit: 1000 MS Memory Limit: 65536 KB64-bit integer IO format: %I64d , %I64u Java class name: Main[Submit] [Status] [Discuss]Descripti... 阅读全文

posted @ 2014-08-01 18:36 点点滴滴” 阅读(158) 评论(0) 推荐(0) 编辑

00000

摘要: #include#include#include#include#define MAX 20001using namespace std;int c,n,ls[MAX];struct node{ int l,r; int c;} tr[MAX*4];struct ln{ int li,num;//n... 阅读全文

posted @ 2014-08-01 15:42 点点滴滴” 阅读(784) 评论(0) 推荐(0) 编辑

2014年7月31日 #

HDU 4893 线段树的 点更新 区间求和

摘要: Wow! Such Sequence!Time Limit: 10000/5000 MS (Java/Others)Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 2067Accepted Submission(s): 61... 阅读全文

posted @ 2014-07-31 10:41 点点滴滴” 阅读(291) 评论(0) 推荐(0) 编辑

2014年7月29日 #

走上模拟道路 HDU4891

摘要: http://vjudge.net/contest/view.action?cid=51327#problem/DDescriptionYoda: May the Force be with you.Master Yoda is the oldest member of the Jedi Counc... 阅读全文

posted @ 2014-07-29 09:40 点点滴滴” 阅读(158) 评论(0) 推荐(0) 编辑

2014年7月27日 #

初次见识结构体与map的区别

摘要: 题目 http://vjudge.net/contest/view.action?cid=51142#problem/G自己做的结构体#include #include #include #include using namespace std;struct Name{ char name[35];... 阅读全文

posted @ 2014-07-27 13:19 点点滴滴” 阅读(1088) 评论(0) 推荐(0) 编辑

http://vjudge.net/contest/view.action?cid=51142#problem/C 精度转换的一道题。。。

摘要: C - Get-Together at Den's Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64uSubmit Status Practice URAL 1864DescriptionAdvertising f... 阅读全文

posted @ 2014-07-27 09:54 点点滴滴” 阅读(2478) 评论(0) 推荐(0) 编辑

double float的精度问题

摘要: 三部曲1: #include #include #include using namespace std; int main() { double a=0.0001; float b=0.1; int c=(int)(a*1000)/b; cout #inclu... 阅读全文

posted @ 2014-07-27 09:01 点点滴滴” 阅读(1338) 评论(0) 推荐(0) 编辑

2014年7月24日 #

广搜 poj3278 poj1426 poj3126

摘要: Catch That CowTime Limit: 2000 MS Memory Limit: 65536 KB64-bit integer IO format: %I64d , %I64u Java class name: Main[Submit] [Status] [Discuss]Descri... 阅读全文

posted @ 2014-07-24 10:11 点点滴滴” 阅读(282) 评论(0) 推荐(0) 编辑