题解:P9298 [POI2020] Tablica binarna
摘要:这题有点像二维前缀和(个人认为)。 思路比较简单,修改奇数次的点,不用改,ans−1ans-1ans−1,修改偶数次,就翻转一次,ans+1ans+1ans+1。 反转的位置有四个,详见代码: #include<bits/stdc++.h> using namespace std; bool c[1
阅读全文
posted @ 2024-06-22 22:06
posted @ 2024-06-22 22:06
posted @ 2024-06-15 10:19
posted @ 2024-06-06 18:58
posted @ 2024-06-05 21:53