摘要:
"A. Banana" 题意 给定$N$个猴子对香蕉喜欢的关系,和$M$个香蕉产自哪个地区的关系。输出所有猴子和地区的关系。 题解 暴力。 代码 cpp include using namespace std; typedef long long ll; const int N = 1009; in 阅读全文
摘要:
"A. Arpa and a research in Mexican wave" 题意 分段函数求值。 题解 $\begin{equation} f(t)= \begin{cases} t&,0\leq t\leq k\newline k&,k using namespace std; int ma 阅读全文
摘要:
"C Together" 题意 给定$N$个数,求它们或加一或减一或不变的众数。 题解 没什么好说的。 代码 cpp include using namespace std; typedef long long ll; const int N = 1e5+9; int p[N]; inline in 阅读全文