vj1006 &aelig;™&acute;&aring;&curren;&copy;&aring;&deg;&ccedil;Œ&ordf;&aring;Ž†&eacute;™&copy;&egra

This preview shows pages 1–2. Sign up to view the full content.

//±¾Ìâ×ß·¨¿ÉÒÔ´ÓµÚÒ»¸öµ½×îºóÒ»¸ö Ò²¿ÉÒÔ´Ó×îºóÒ»¸öµ½µÚÒ»¸ö //×óÉÏºÍÓÒÉÏÊÇÖ¸Èý½ÇÐÎµÄ×ß·¨ ¶ø²»ÊÇ×ª»»ºóµÄ×ß·¨ / //±ÉÈËµÄ·½·¨ //dp //µÚ i ²ã¿ÉÒÔÓÉÏÂÃæÒ»²ã×ßÀ´ µÚÒ»¸öºÍ×îºóÒ»¸öÓÐÌØÊâ×ß·¨ »¹¿ÉÒÔ±¾²ã´Ó×óµ½ÓÒ»ò´ÓÓÒµ½×ó //×¢Òâµ½»·µÄÎÊÌâ Ã¿²ãÖÐµÄ×îÐ¡Öµ±Ø¶¨²»ÄÜÓÉÁ½±ß¸üÐÂ ËùÒÔ´ÓÕâ¸öµãÍùÁ½±ß¸÷ÍÆÒ»È¦ / //¿ÉÒÔ²ÉÈ¡´ÓÉÏÏòÏÂ»ò´ÓÏÂÏòÉÏ ×¢Òâ²»Í¬ÍÆ·¨µÄ³õÖµ / const maxn=1000; var n:integer; g:array[0. .maxn,0. .maxn] of byte; f:array[0. .maxn,0. .maxn] of longword; function min(x,y:longword):longword; begin if x<=y then exit(x); exit(y); end; procedure init; var i,j:integer; begin readln(n); for i:=1 to n do for j:=1 to i do read(g[i,j]); end; procedure main; var i,j,minj:integer; mini:longword; begin for i:=1 to n do for j:=0 to i+1 do

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.