vj1457 &aring;&deg;&ccedil;&ccedil;š„&egrave;&middot;&macr;&aring;&frac34;„

# Vj1457 å°ççš„è·¯å¾„

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

//±¾ÌâzÂ·Ä©Î²ÓÐ¿Õ¸ñ£¡ / //±ÉÈËµÄ·½·¨ //dfs+ÊýÂÛ //dfs ÕÒ×î³¤Â·¾¶ºÍ×î³¤zÂ· //ÒòÎªzÂ·³¤¶ÈÎªÅ¼ ËùÒÔÃ¿´Î¸ÄÏàÁÚÁ½Ïî¶¼ÎªÒ»¸öÆæÊýÏîÒ»Å¼ÊýÏî ²»»áÊ¹Õû¸ö»·µÄÆæÊýÏîºÍÓëÅ¼ÊýÏîºÍµÄ²î·¢Éú±ä»¯ //ËùÒÔÖ»Òªµ±ÇÒ½öµ±ÆæÊýÏîºÍÓëÅ¼ÊýÏîºÍÏàµÈÊ± ¸Ã»·ÓÐ¿É¼ÓÐÔ / //dfs ×¢Òâ·ÖÎö¸ÃÍ¼½á¹¹²¢²»ÊÇÊ÷ ¿ÉÄÜÓÐ»· ËùÒÔÒªÅÐÖØ //ÅÐÖØ×¢Òâ»ØËÝ / const maxn=20; var n,m,lev,lon,maxc,minj,ztot:integer; t:longint; cost,even,tmp:array[0. .maxn] of integer; num,g:array[0. .maxn,0. .maxn] of longint; v:array[0. .maxn] of boolean; function check:boolean; var i:integer; begin for i:=1 to lev do begin if cost[tmp[i]]<cost[even[i]] then exit(true); if cost[tmp[i]]>cost[even[i]] then exit(false); end; end; procedure init; var i,w,x,y:longint; begin readln(n,m,t); for i:=1 to n do read(cost[i]); for i:=1 to m do begin

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.

## 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

Vj1457 å°ççš„è·¯å¾„

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

View Full Document
Ask a homework question - tutors are online