摘要:
没时间写了,于是就很简洁。。 A. 归隐 给了我推式子的自信,好像只用到了等比数列求和。 code #include <bits/stdc++.h> using namespace std; typedef long long ll; const int mod = 998244353; const 阅读全文
摘要:
整场考试都被我拿来死磕T3了,以为它是树形dp,结果没开long long连暴力的15都没拿到。。听说考前爆0可以涨rp,不知道是不是真的。。 In the dark days, do not let the cold fate of secretly pleased; fate since to 阅读全文
摘要:
在OIwiki上的称呼是线段树与离线询问。 C. 地理课 乘除法可以直接在原有答案上操作,其他的就比较板子了。 code #include <bits/stdc++.h> using namespace std; typedef long long ll; const int maxn = 2e5 阅读全文
摘要:
A. 最长反链 我居然以为它不连续的也不行,我怀疑这个20分的东西把题面改成“x不是y的子序列”大概是对的。 #include <bits/stdc++.h> using namespace std; typedef long long ll; const int maxn = 1337; int 阅读全文