https://www.luogu.org/problemnew/lists?name=&orderitem=difficulty&tag=2&content=0&select=1&type=
P1000 超级玛丽游戏
做过了,而且很无聊。
P2562 Kitty猫基因编码
又一个无聊题,题目的数据范围还错。

#include<bits/stdc++.h> using namespace std; #define ll long long char s[261]; char ans[261]; int top; void check(int b,int l){ int all0=1,all1=1; for(int i=b;i<b+l;i++){ if(s[i]=='0') all1=0; else all0=0; if(all1==0&&all0==0){ break; } } if(all0) ans[top++]='A'; else if(all1) ans[top++]='B'; else{ ans[top++]='C'; check(b,l/2); check(b+l/2,l/2); } //printf("%s ",ans); } void solve(){ while(~scanf("%s",s)){ top=0; int n=strlen(s); check(0,n); ans[top++]='