链接:https://ac.nowcoder.com/acm/problem/13585 来源:牛客网 解题思路: 1、利用集合来检测是否有重复的按键 2、在遇到1,3,7,9,2,4,6,8都检测一下前面的数是否可以这样连接,枚举所有情况 #include <string> #include <set> using namespace std; char ch(char a, char b) { return '0' + ((a - '0') + (b - '0')) / 2; } int main() { string str; while (cin >&...