vj1114 FBIæ ‘

vj1114 FBIæ ‘ - / / / / c1 / / / const...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
//±ÉÈ˵ķ½·¨ //¶þ·ÖµÝ¹é // Éè c1 Ϊ×ó×ÓÊ÷µÄ×Öĸ c2 ΪÓÒ×ÓÊ÷µÄ×Öĸ / //×¢ÒâÒªÓþֲ¿±äÁ¿ //×¢ÒâϽç / const maxn=1024; var n:integer; c1,c2:char; a:array[0. .maxn] of char; function calc(l,r:integer):char; var mid:integer; c1,c2:char; begin if l=r then begin write(a[l]); exit(a[l]); end; mid:=(l+r) >> 1; c1:=calc(l,mid); c2:=calc(mid+1,r); if c1<>c2 then begin write('F'); exit('F'); end
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.
Ask a homework question - tutors are online