Submission #2999143


Source Code Expand

#include<iostream>
#include<cstring>
#include<cstdio>
#include<string>
using namespace std;
int n,k;char c[2050];
int postbt(int bt)
{	if(bt>2*k-1) return 0;
	postbt(2*bt);postbt(2*bt+1);
	cout<<c[bt];return 0;
}
int main()
{
	string s;int i;
	cin>>n>>s;k=s.size();
	for(i=k;i<2*k;i++)
	  if(s[i-k]=='0') c[i]='B';else c[i]='I';
	for(i=k-1;i>0;i--)
	  if(c[2*i]=='B'&&c[2*i+1]=='B') c[i]='B';
	  else if(c[2*i]=='I'&&c[2*i+1]=='I') c[i]='I';
	  else c[i]='F';
	postbt(1);cout<<endl;return 0;
}

Submission Info

Submission Time
Task A - 役人
User luogu_bot4
Language C++ (GCC 5.4.1)
Score 0
Code Size 517 Byte
Status WA
Exec Time 1 ms
Memory 256 KB

Judge Result

Set Name Subtask00 Subtask01 Subtask02 Subtask03 Subtask04 Subtask05 Subtask06 Subtask07 Subtask08 Subtask09 Subtask10 Subtask11 Subtask12 Subtask13 Subtask14 Subtask15 Subtask16 Subtask17 Subtask18 Subtask19 Subtask20 Subtask21 Subtask22 Subtask23 Subtask24 Subtask25 Subtask26 Subtask27 Subtask28 Subtask29 Subtask30 Subtask31 Subtask32 Subtask33 Subtask34 Subtask35 Subtask36 Subtask37 Subtask38 Subtask39 Subtask40 Subtask41 Subtask42 Subtask43 Subtask44 Subtask45 Subtask46 Subtask47 Subtask48 Subtask49 Subtask50 Subtask51 Subtask52 Subtask53 Subtask54 Subtask55 Subtask56 Subtask57 Subtask58 Subtask59 Subtask60 Subtask61 Subtask62 Subtask63 Subtask64 Subtask65 Subtask66 Subtask67 Subtask68 Subtask69 Subtask70 Subtask71 Subtask72 Subtask73 Subtask74 Subtask75 Subtask76 Subtask77 Subtask78 Subtask79 Subtask80 Subtask81 Subtask82 Subtask83 Subtask84 Subtask85 Subtask86 Subtask87 Subtask88 Subtask89 Subtask90 Subtask91 Subtask92 Subtask93 Subtask94 Subtask95 Subtask96 Subtask97 Subtask98 Subtask99
Score / Max Score 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1 0 / 1
Status
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
WA × 1
Set Name Test Cases
Subtask00 11_rand00.txt
Subtask01 11_rand01.txt
Subtask02 11_rand02.txt
Subtask03 11_rand03.txt
Subtask04 11_rand04.txt
Subtask05 11_rand05.txt
Subtask06 11_rand06.txt
Subtask07 11_rand07.txt
Subtask08 11_rand08.txt
Subtask09 11_rand09.txt
Subtask10 11_rand10.txt
Subtask11 11_rand11.txt
Subtask12 11_rand12.txt
Subtask13 11_rand13.txt
Subtask14 11_rand14.txt
Subtask15 11_rand15.txt
Subtask16 11_rand16.txt
Subtask17 11_rand17.txt
Subtask18 11_rand18.txt
Subtask19 11_rand19.txt
Subtask20 11_rand20.txt
Subtask21 11_rand21.txt
Subtask22 11_rand22.txt
Subtask23 11_rand23.txt
Subtask24 11_rand24.txt
Subtask25 11_rand25.txt
Subtask26 11_rand26.txt
Subtask27 11_rand27.txt
Subtask28 11_rand28.txt
Subtask29 11_rand29.txt
Subtask30 11_rand30.txt
Subtask31 11_rand31.txt
Subtask32 11_rand32.txt
Subtask33 11_rand33.txt
Subtask34 11_rand34.txt
Subtask35 11_rand35.txt
Subtask36 11_rand36.txt
Subtask37 11_rand37.txt
Subtask38 11_rand38.txt
Subtask39 11_rand39.txt
Subtask40 11_rand40.txt
Subtask41 11_rand41.txt
Subtask42 11_rand42.txt
Subtask43 11_rand43.txt
Subtask44 11_rand44.txt
Subtask45 11_rand45.txt
Subtask46 11_rand46.txt
Subtask47 11_rand47.txt
Subtask48 11_rand48.txt
Subtask49 11_rand49.txt
Subtask50 11_rand50.txt
Subtask51 11_rand51.txt
Subtask52 11_rand52.txt
Subtask53 11_rand53.txt
Subtask54 11_rand54.txt
Subtask55 11_rand55.txt
Subtask56 11_rand56.txt
Subtask57 11_rand57.txt
Subtask58 11_rand58.txt
Subtask59 11_rand59.txt
Subtask60 11_rand60.txt
Subtask61 11_rand61.txt
Subtask62 11_rand62.txt
Subtask63 11_rand63.txt
Subtask64 11_rand64.txt
Subtask65 11_rand65.txt
Subtask66 11_rand66.txt
Subtask67 11_rand67.txt
Subtask68 11_rand68.txt
Subtask69 11_rand69.txt
Subtask70 11_rand70.txt
Subtask71 11_rand71.txt
Subtask72 11_rand72.txt
Subtask73 11_rand73.txt
Subtask74 11_rand74.txt
Subtask75 11_rand75.txt
Subtask76 11_rand76.txt
Subtask77 11_rand77.txt
Subtask78 11_rand78.txt
Subtask79 11_rand79.txt
Subtask80 11_rand80.txt
Subtask81 11_rand81.txt
Subtask82 11_rand82.txt
Subtask83 11_rand83.txt
Subtask84 11_rand84.txt
Subtask85 11_rand85.txt
Subtask86 11_rand86.txt
Subtask87 11_rand87.txt
Subtask88 11_rand88.txt
Subtask89 11_rand89.txt
Subtask90 11_rand90.txt
Subtask91 11_rand91.txt
Subtask92 11_rand92.txt
Subtask93 11_rand93.txt
Subtask94 11_rand94.txt
Subtask95 11_rand95.txt
Subtask96 11_rand96.txt
Subtask97 11_rand97.txt
Subtask98 11_rand98.txt
Subtask99 11_rand99.txt
Case Name Status Exec Time Memory
11_rand00.txt WA 1 ms 256 KB
11_rand01.txt WA 1 ms 256 KB
11_rand02.txt WA 1 ms 256 KB
11_rand03.txt WA 1 ms 256 KB
11_rand04.txt WA 1 ms 256 KB
11_rand05.txt WA 1 ms 256 KB
11_rand06.txt WA 1 ms 256 KB
11_rand07.txt WA 1 ms 256 KB
11_rand08.txt WA 1 ms 256 KB
11_rand09.txt WA 1 ms 256 KB
11_rand10.txt WA 1 ms 256 KB
11_rand11.txt WA 1 ms 256 KB
11_rand12.txt WA 1 ms 256 KB
11_rand13.txt WA 1 ms 256 KB
11_rand14.txt WA 1 ms 256 KB
11_rand15.txt WA 1 ms 256 KB
11_rand16.txt WA 1 ms 256 KB
11_rand17.txt WA 1 ms 256 KB
11_rand18.txt WA 1 ms 256 KB
11_rand19.txt WA 1 ms 256 KB
11_rand20.txt WA 1 ms 256 KB
11_rand21.txt WA 1 ms 256 KB
11_rand22.txt WA 1 ms 256 KB
11_rand23.txt WA 1 ms 256 KB
11_rand24.txt WA 1 ms 256 KB
11_rand25.txt WA 1 ms 256 KB
11_rand26.txt WA 1 ms 256 KB
11_rand27.txt WA 1 ms 256 KB
11_rand28.txt WA 1 ms 256 KB
11_rand29.txt WA 1 ms 256 KB
11_rand30.txt WA 1 ms 256 KB
11_rand31.txt WA 1 ms 256 KB
11_rand32.txt WA 1 ms 256 KB
11_rand33.txt WA 1 ms 256 KB
11_rand34.txt WA 1 ms 256 KB
11_rand35.txt WA 1 ms 256 KB
11_rand36.txt WA 1 ms 256 KB
11_rand37.txt WA 1 ms 256 KB
11_rand38.txt WA 1 ms 256 KB
11_rand39.txt WA 1 ms 256 KB
11_rand40.txt WA 1 ms 256 KB
11_rand41.txt WA 1 ms 256 KB
11_rand42.txt WA 1 ms 256 KB
11_rand43.txt WA 1 ms 256 KB
11_rand44.txt WA 1 ms 256 KB
11_rand45.txt WA 1 ms 256 KB
11_rand46.txt WA 1 ms 256 KB
11_rand47.txt WA 1 ms 256 KB
11_rand48.txt WA 1 ms 256 KB
11_rand49.txt WA 1 ms 256 KB
11_rand50.txt WA 1 ms 256 KB
11_rand51.txt WA 1 ms 256 KB
11_rand52.txt WA 1 ms 256 KB
11_rand53.txt WA 1 ms 256 KB
11_rand54.txt WA 1 ms 256 KB
11_rand55.txt WA 1 ms 256 KB
11_rand56.txt WA 1 ms 256 KB
11_rand57.txt WA 1 ms 256 KB
11_rand58.txt WA 1 ms 256 KB
11_rand59.txt WA 1 ms 256 KB
11_rand60.txt WA 1 ms 256 KB
11_rand61.txt WA 1 ms 256 KB
11_rand62.txt WA 1 ms 256 KB
11_rand63.txt WA 1 ms 256 KB
11_rand64.txt WA 1 ms 256 KB
11_rand65.txt WA 1 ms 256 KB
11_rand66.txt WA 1 ms 256 KB
11_rand67.txt WA 1 ms 256 KB
11_rand68.txt WA 1 ms 256 KB
11_rand69.txt WA 1 ms 256 KB
11_rand70.txt WA 1 ms 256 KB
11_rand71.txt WA 1 ms 256 KB
11_rand72.txt WA 1 ms 256 KB
11_rand73.txt WA 1 ms 256 KB
11_rand74.txt WA 1 ms 256 KB
11_rand75.txt WA 1 ms 256 KB
11_rand76.txt WA 1 ms 256 KB
11_rand77.txt WA 1 ms 256 KB
11_rand78.txt WA 1 ms 256 KB
11_rand79.txt WA 1 ms 256 KB
11_rand80.txt WA 1 ms 256 KB
11_rand81.txt WA 1 ms 256 KB
11_rand82.txt WA 1 ms 256 KB
11_rand83.txt WA 1 ms 256 KB
11_rand84.txt WA 1 ms 256 KB
11_rand85.txt WA 1 ms 256 KB
11_rand86.txt WA 1 ms 256 KB
11_rand87.txt WA 1 ms 256 KB
11_rand88.txt WA 1 ms 256 KB
11_rand89.txt WA 1 ms 256 KB
11_rand90.txt WA 1 ms 256 KB
11_rand91.txt WA 1 ms 256 KB
11_rand92.txt WA 1 ms 256 KB
11_rand93.txt WA 1 ms 256 KB
11_rand94.txt WA 1 ms 256 KB
11_rand95.txt WA 1 ms 256 KB
11_rand96.txt WA 1 ms 256 KB
11_rand97.txt WA 1 ms 256 KB
11_rand98.txt WA 1 ms 256 KB
11_rand99.txt WA 1 ms 256 KB