vj1105 &ccedil;&yen;ž&ccedil;&raquo;&ccedil;&frac12;‘&ccedil;&raquo;œ

# Vj1105 - c[i i/c[i]=sum(g[j,i*c[j-u[i c[i]>0 c[i]=c[i const maxn=200 var n,p:integer c,u:array[0.maxn of longint g:array[0.maxn,0.maxn of integer

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

//±ÉÈËµÄ·½·¨ //¼ÇÒä»¯ËÑË÷ //Éè c[i] Îª i µÄ×´Ì¬ //c[i]=sum(g[j,i]*c[j])-u[i] / //±ÉÈËµÄÎÊÌâ //Èç¹û³õÊ¼ c[i]>0 ÔòËüÊÇÊäÈë²ã c[i]=c[i] //Èç¹ûËÑ¹ýÒ»¸öµã ÏÂ´ÎÓöµ½¾Í²»ÔÙËÑÁË£¨¼ÇÒä£© ·ñÔò c[i] »áÀÛ¼Ó¶àÁË / const maxn=200; var n,p:integer; c,u:array[0. .maxn] of longint; g:array[0. .maxn,0. .maxn] of integer; link:array[0. .maxn,0. .maxn] of boolean; v:array[0. .maxn] of boolean; flag:boolean; procedure dfs(k:integer); var i:integer; begin if c[k]>0 then exit;

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

Vj1105 - c[i i/c[i]=sum(g[j,i*c[j-u[i c[i]>0 c[i]=c[i const maxn=200 var n,p:integer c,u:array[0.maxn of longint g:array[0.maxn,0.maxn of integer

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

View Full Document
Ask a homework question - tutors are online