自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 soj1041. Pushing Boxes

#include #include #include #include #include #include #define maxn 210001 using namespace std; int N,M,K; int a[maxn],sa[maxn],rank[maxn],height[maxn]; int wb[maxn],wv[maxn],sw[maxn],wa[maxn],b[maxn],

2015-04-15 21:14:09 413

转载 三维偏序

 太神奇的,二分的魅力 给定N个没有顺序三元组(xi,yi,zi),求其中能构成最长上升序列的长度,大于的定义为(xi>xj && yi>yj && zi>zi) 1.在处理区间[L,R]的时候,先二分区间[L, (L+R)/ 2],递归求这个左区间(二分的原因是我在维护y维的时候难免破坏x维的性质,但是二分之后我还是可以保证左区间的x全都大于右区间的x)。 (注意对x排序的时候,如果

2015-01-29 23:45:42 467

原创 soj1005. Roll Playing Games

1005. Roll Playing Games Constraints Time Limit: 1 secs, Memory Limit: 32 MB Description Phil Kropotnik is a game maker, and one common problem he runs into is determining the s

2014-12-30 23:12:40 746

原创 soj1003. Hit or Miss

 1003. Hit or Miss Constraints Time Limit: 1 secs, Memory Limit: 32 MB Description One very simple type of solitaire game known as "Hit or Miss" (also known as "Frustration," "Harvest,"

2014-09-04 22:21:24 607

原创 soj1002 Anti-prime Sequences

  1002. Anti-prime Sequences Constraints Time Limit: 3 secs, Memory Limit: 32 MB Description Given a sequence of consecutive integers n,n+1,n+2,...,m, an anti-prime sequence is a rear

2014-09-03 23:38:15 998

原创 soj1001. Alphacode简单动规

 Constraints Time Limit: 1 secs, Memory Limit: 32 MB Description Alice and Bob need to send secret messages to each other and are discussing ways to encode their messages: Alice: "Let's just us

2014-08-30 23:29:20 569

原创 soj1000a-b(高精度)

开始soj了 第一题1000 与众不同的居然是a-b

2014-08-30 13:36:52 335

空空如也

空空如也

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

TA关注的人

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