delete pics to save space

This commit is contained in:
2023-08-03 09:22:52 +08:00
commit de60cd6ed4
1334 changed files with 66221 additions and 0 deletions

20
1.1087.cpp Normal file
View File

@ -0,0 +1,20 @@
#include<cstdio>
char s[1050];
void dfs(int L,int R)
{
if(L<R) dfs(L,(L+R)/2),dfs((L+R+1)/2,R);
int B=1,I=1;
for(int i=0;i<=R-L;i++)
if(s[L+i]=='1') B=false;
else if(s[L+i]=='0') I=false;
if(B) putchar('B');
else if(I) putchar('I');
else putchar('F');
}
int main()
{
int n;
scanf("%d%s",&n,s);
dfs(0,(1<<n)-1);
return 0;
}