vj1431 守望者的逃离

Vj1431 守望者的逃离

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

View Full Document Right Arrow Icon
//unaccept 80 / //±ÉÈ˵ķ½·¨ //DP //µ±Ç°ËäÈ»ÓÐÈýÖÖ¾ö²ß£ºÐÝÏ¢ ʹÓÃħ·¨ ×ß· //µ«Èç¹û¶¼À©Õ¹µ½×´Ì¬¶¨ÒåÉè f[ t , 1. .3 , 1. .2 ] Ϊ t ÃëÈýÖÖÇé¿ö×ßµÄ×î´ó¾àÀëºÍµ±Ç °Ä§·¨Öµ ÊDz»ÕýÈ·µÄ //ÒòΪµ±Ç°¿ÉÄÜ×ßµ½Ò»¸ö½Ï´óµÄ¾àÀë µ«ºóÃæµÄʱ¼ä»áÊܵ½ÏÖÔÚħ·¨µÄÏÞÖÆ //ËùÒ԰ѵ±Ç°Ä§·¨À©Õ¹µ½×´Ì¬¶¨ÒåÀï //Éè f[ t , m ] Ϊ t ʱ¿Ì ħ·¨Öµ´ïµ½ m ʱÄÜ×ßµÄ×îÔ¶¾àÀë //f[ t , m ] = max ( f[ t-1 , m-4 ] , f[ t-1 , m ] + 17 , f[ t-1 , m+10 ] + 60 ) //×¢Òâµ÷ÓõÄÖµÒªÓÐÒâÒå / //´óÅ£µÄºÃ·½·¨ //Ì°ÐÄ / const maxm=1000; var m,s,t,mini,long:longint; f,g:array[0.
Background image of page 1

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

View Full DocumentRight Arrow Icon
Background image of page 2
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.

Page1 / 2

Vj1431 守望者的逃离

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online