AtCoder ARC #108 : D - AB
问题
题目
在初始状态下,有一个字符串"AB",执行以下过程,直到此字符串的长度为 N。
按此顺序选择字符 x 和 y 的相邻位置,然后插入字符 C[x] [y]。
最终可能的字符串数量是多少?
暴力打表找规律,考虑C[x][y]的不同取值
打表代码
#include "bits/stdc++.h"
using namespace std;
#define fi first
#define se second
#define pb push_back
#define es erase
#defin
原创
2020-11-30 18:41:19 ·
301 阅读 ·
0 评论