摘要:
Codeforces Round #736 (Div. 2) A_Gregor and Cryptography 题意: 给你一个素数,让你找到 两个数 a,b 满足 \[ P mod a = P mod b \] \[ 2 \le a <b \le P \] **思路:**随便找几个数,我们就可以 阅读全文
摘要:
数列分块 1____* 板子题 * #include <bits/stdc++.h> using namespace std; const int N = 5e4 + 10; int id[N], len; int a[N], b[N], s[N]; void add(int l, int r, i 阅读全文
摘要:
2021_积分赛第二场 名称 来源 算法 敌兵布阵 HDU-1166 线段树(简单) Emoticons ICPC Central Russia Regional Contest (CRRC 19) map 模拟 Power play ICPC Central Russia Regional Con 阅读全文
摘要:
2.11、Segment Tree 前言:本节翻译自Segment Tree - Algorithms for Competitive Programming (cp-algorithms.com) ,有些图是自己加的,原文中的部分英文表述,我换成了更合适的中文。 如果理解不了本文中的描述,首先是本 阅读全文