vj1059 积木城堡

Vj1059 积木城堡

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

View Full Document Right Arrow Icon
//±ÉÈ˵ķ½·¨ //dp //¶ÔÓÚÿ×é³Ç±¤ ¿´Ã¿¸ö³¤¶ÈÊÇ·ñÄÜ´î³öÀ´ //´ð°¸Ñ¡Ôñ¶¼ÄÜ´î³öÀ´µÄ×î´óµÄ / const maxn=100; var n,sum:integer; g,f:array[0. .maxn*maxn] of boolean; procedure main; var i,j,k,x,t:integer; begin fillchar(f,sizeof(f),true); sum:=maxint; readln(n); for i:=1 to n do begin fillchar(g,sizeof(g),false); g[0]:=true;
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