vj1098 合唱队形

Vj1098 合唱队形

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

View Full Document Right Arrow Icon
//±ÉÈ˵ķ½·¨ //dp //Éè left[i] ±íʾÒÔ i ½áβµÄ×ÉÏÉýÐòÁÐ right[i] ±íʾÒÔ i ½áβµÄ×ϽµÐòÁÐ //ans=n-max(left[i]+right[i]-1) / const maxn=100; var n,sum:integer; a,left,right:array[0. .maxn] of integer; procedure init; var i:integer; begin readln(n); for i:=1 to n do read(a[i]); end; procedure main; var i,j:integer; begin for i:=1 to n do begin left[i]:=1;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/21/2011 for the course CS 001 taught by Professor 001 during the Spring '11 term at Shandong University.

Ask a homework question - tutors are online