内容目录
分成2种情况考虑-男多女少和女多男少
考虑以下2种情况:
BGBGBB
BGBGGG-->GBGBGG 显然后面间隔较多
Program Boys; var n,m,i:longint; begin assign(input,'input.txt'); assign(output,'output.txt'); reset(input); rewrite(output); read(n,m); if n<m then begin for i:=1 to n do write('GB'); for i:=n+1 to m do write('G'); end else begin for i:=1 to m do write('BG'); for i:=m+1 to n do write('B'); end; writeln; close(input);close(output); end.