vj1253 旅行家的预算

Vj1253 旅行家的预算

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

View Full Document Right Arrow Icon
//±ÉÈ˵ķ½·¨ //Ì°ÐÄ //»¨·Ñ×îÉÙµÄÒâÒåÊÇÓÃ×î±ãÒ˵ÄÓÍÐÐÊ» //É赱ǰÓÍվΪ i //Ì°ÐÄ·½·¨£º //1.ÄÜ×ßµ½±Èµ±Ç°Óͼ۵͵ÄÓÍÕ¾ Ôò¼ÓÓ͵½ÕýºÃ×ßµ½µÚÒ»¸ö±Èµ±Ç°Óͼ۵͵ÄÓÍÕ¾ j //Èç¹û¼Ó¶àÁËÔò j Õ¾Ö®ºóµÄ·ÓÃÁË i Õ¾µÄÓÍÐÐ×ß ÏÔÈ»±ÈÓà j Õ¾µÄÓÍÐÐ×ß»¨·Ñ¶à Èç¹û¼ÓÉÙÁËÔòµ½µÄÓÍÕ¾ k ±Èµ±Ç°ÓÍ¼Û¸ß k Õ¾Ö®ºóµÄ·Óà k Õ¾µÄÓÍ×ß ÏÔÈ»±ÈÓà i Õ¾µÄ»¨·Ñ¶à Õ //2.ÄÜ×ßµ½µÄûÓбȵ±Ç°Óͼ۵͵ÄÓÍÕ¾ Ôò¼ÓÂúÓÍ ×ßµ½ÄÜ×ßµ½µÄÓͼÛ×îµÍµÄÓÍÕ¾ ÒÀÈ»ÊDZ£Ö¤´Óµ±Ç°Õ¾Íùºó×߶¼ÓÃ×îС´ú¼ÛµÄÓÍ Ò const maxn=100;
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

Vj1253 旅行家的预算

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