2016年8月18日

codeforces #round363 div2.C-Vacations (DP)

摘要: 题目链接:http://codeforces.com/contest/699/problem/C dp[i][j]表示第i天做事情j所得到最小的假期,j=0,1,2。 阅读全文

posted @ 2016-08-18 21:52 polarday 阅读(136) 评论(0) 推荐(0) 编辑

Codeforces Round #365 (Div. 2)-D Mishka and Interesting sum(树状数组)

摘要: 题目链接:http://codeforces.com/contest/703/problem/D 思路:看了神犇的代码写的... 偶数个相同的数异或结果为0,所以区间ans[l , r]=区间[l , r]每个数相异或^区间[l , r]出现过的数相异或。如数组1,2,1,3,3,2,3,则ans[ 阅读全文

posted @ 2016-08-18 19:03 polarday 阅读(130) 评论(0) 推荐(0) 编辑

导航