vj1133 装箱问题

Vj1133 装箱问题

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
//±ÉÈ˵ķ½·¨ //dp //01±³°ü±äÐÎ / const maxn=30; maxv=20000; var n,v:integer; a:array[0. .maxn] of integer; f:array[0. .maxv] of boolean; procedure init; var i:integer; begin readln(v); readln(n); for i:=1 to n do readln(a[i]); end; procedure main; var i,j:integer;
Background image of page 1
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.

Ask a homework question - tutors are online