摘要: 传送门 •题意 给你一个包含 n 个数的序列 a,定义序列上的两个操作: (1)$1,l,r\ :\ ans=\sum_{i=l}^{r}a_i$; (2)$2,l,r,x\ :\ \forall\ i \in[l,r],a_i = a_i\ xor\ x$; 输出操作(1)对应的 ans 值; • 阅读全文
posted @ 2019-09-09 19:28 HHHyacinth 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 传送门 •参考资料 [1]:官方题解(提取码:g5q6) E. XKC's basketball team(思维) •题意 n 个人,每个人都有权值,其中第 i 个人的权值为 $w_i$; 定义一个 $anger$ 值,$\forall \ j \in [i+1,n]\ ,\exists\ w_j 阅读全文
posted @ 2019-09-09 09:22 HHHyacinth 阅读(252) 评论(0) 推荐(0) 编辑