摘要:
C たくさんの数式 / Many Formulas 思路:假设字符串长度为len,则有len 1个空,插入+号共2^(len 1)中方法,枚举每一个状态算加和即可。 c++ include using namespace std; typedef long long LL; int dx[9] = 阅读全文
摘要:
C 高橋君とカード / Tak and Cards 思路:dp,先说说我想的,我写的dp数组是dp[i][j][k],表示从前i个数字中,选择j个数字,平均值为k,则dp[i][j][k] = dp[i 1][j][k]+dp[i 1][j 1][(j k nums[i])/(j 1)],即第i个选 阅读全文
摘要:
C いっしょ / Be Together 数据比较小,暴力就挺好的。O(n^2)可过的好题 c++ include using namespace std; const int MAXN = 1e5+10; char str[MAXN]; int len; int main() { int s = 阅读全文
摘要:
这个应该是第一场有英文的atcoder吧??不过题解却没有英文的。。。 从前往后慢慢做。。。 C こだわり者いろはちゃん / Iroha's Obsession 数据范围这么小,直接暴力 include using namespace std; typedef long long LL; const 阅读全文