摘要:
Problem D: Down the Pyramid Down the Pyramid - Gym 102021D - Virtual Judge (vjudge.net) 概述:给你一个序列,根据这个序列,写出它下一层金字塔的可能出现的序列数目。 核心:一个点确定之后能推出另一个点的准确值。如果 阅读全文
摘要:
#include <bits/stdc++.h> #define endl '\n' #define x first #define y second #define int long long #define Tang ios::sync_with_stdio(0);cin.tie(0);cout 阅读全文
摘要:
记一下快速幂,感觉蛮有意思的。 快速幂算法 (a * b) % p = (a % p * b % p) % p 任意一个(0~2k)的数能够表示为(1,2,4……2k)中的数相加的形式 类似于多重背包的优化 5. 多重背包问题 II - AcWing题库 二进制真是一个神奇的东西 例题: 1 #in 阅读全文