摘要:
https://scut.online/p/93 每次取走的石子是b的幂次。打表暴力发现规律。 cpp include using namespace std; typedef long long ll; const int MAXN=1000005; //f[i]:可改变i状态的方式 //SG[] 阅读全文
摘要:
https://codeforces.com/contest/1198/problem/D 原来是dp的思路,而且是每次切成两半向下递归。好像在哪里见过类似的,貌似是紫书的样子。 再想想好像就很显然的样子,并不会出现奇奇怪怪的合并的样子。 include using namespace std; c 阅读全文
摘要:
https://scut.online/p/271 第一次遇到没这么裸的,其实感觉到是卷积但是不知道怎么化。看来以后要多注意下标。 cpp include using namespace std; typedef long long ll; const int MAXN = 2e6; const d 阅读全文
摘要:
https://www.51nod.com/Challenge/Problem.html problemId=1586 一眼看过去居然一点思路都没有的,一言不合就打表,打贡献表。 cpp include using namespace std; typedef long long ll; int n 阅读全文