摘要: input1=100outputmax((a[i]+a[j])^a[k]) i!=j!=k做法,将s数组建成一颗01字典树,枚举a[i]+a[j]找最大,找之前要把a[i]和a[j]删掉,找完后再插入 1 #include 2 #include 3 #include 4 #includ... 阅读全文
posted @ 2015-11-02 09:23 cdongyang 阅读(401) 评论(0) 推荐(0)
摘要: input1 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 10 11 using namespace std;12 13 int a[100010][2]... 阅读全文
posted @ 2015-11-01 10:54 cdongyang 阅读(229) 评论(0) 推荐(0)
摘要: input1val时,a[i+1]*b[j]>val 1 #include 2 #include 3 #include 4 using namespace std; 5 typedef long long LL; 6 7 const int MAXN = 100010; 8 9 int... 阅读全文
posted @ 2015-10-31 10:22 cdongyang 阅读(1321) 评论(0) 推荐(0)
摘要: #include #include #include #include #include #include #include #include #include #define lowbit(x) x&-xusing namespace std;int c[100010],a[20010],n,T,... 阅读全文
posted @ 2015-10-30 20:33 cdongyang 阅读(153) 评论(0) 推荐(0)
摘要: 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 10 #include 11 12 using namespace std;13 1... 阅读全文
posted @ 2015-10-29 20:33 cdongyang 阅读(154) 评论(0) 推荐(0)
摘要: 高效率移动编 1、在插入模式之外基本上来说,你应该尽可能少的呆在插入模式里面,因为在插入模式里面 VIM 就像一个“哑巴”编辑器一样。很多新手都会一直呆在插入模式里面,因为这样易于使用。但 VIM 的强大之处在于他的命令模式!你会发现,在你越来越了解 VIM 之后,你就会花越来越少的时间使用插入模式 阅读全文
posted @ 2015-10-29 15:57 cdongyang 阅读(178) 评论(0) 推荐(0)
摘要: 1 " All system-wide defaults are set in $VIMRUNTIME/debian.vim and sourced by 2 " the call to :runtime you can find below. If you wish to change any o 阅读全文
posted @ 2015-10-28 23:09 cdongyang 阅读(278) 评论(0) 推荐(0)
摘要: 用一个数组记下递增子序列长度为i时最小的len[i],不断更新len数组,最大的i即为最长递增子序列的长度 1 #include 2 #include 3 #define MAX 40010 4 using namespace std; 5 int a, T, n, len[MAX]; 6 in... 阅读全文
posted @ 2015-10-15 10:54 cdongyang 阅读(196) 评论(0) 推荐(0)
摘要: MZL's xorTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 911Accepted Submission(s): 589Problem D... 阅读全文
posted @ 2015-10-13 20:46 cdongyang 阅读(223) 评论(0) 推荐(0)
摘要: Team FormationTime Limit:3 Seconds Memory Limit:131072 KBFor an upcoming programming contest, Edward, the headmaster of Marjar University, is forming ... 阅读全文
posted @ 2015-10-13 20:30 cdongyang 阅读(146) 评论(0) 推荐(0)