摘要: 题面:https://www.luogu.org/problem/P1505 cpp 本题讲一下取反操作:sum首先取反,max等于取反后的min,min等于取反过的max,那么直接把max,min互换然后分别取反就行了,另外标记直接 xor 1. Code: include include inc 阅读全文
posted @ 2019-10-23 13:23 prestige 阅读(165) 评论(0) 推荐(0) 编辑