-
Notifications
You must be signed in to change notification settings - Fork 0
/
programacao-dinamica.html
64 lines (57 loc) · 1.14 KB
/
programacao-dinamica.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Problema da Mochila: Programação Dinâmica</title>
</head>
<body>
<h1>Problema da Mochila: Programação Dinâmica</h1>
<h3>Capacidade da Mochila: 12.</h3>
<table border="1|1">
<tr>
<th colspan="4">TABELA DE ITENS</th>
</tr>
<tr>
<td>id:</td>
<td>nome:</td>
<td>peso:</td>
<td>valor:</td>
</tr>
<tr>
<td>1</td>
<td>item1</td>
<td>6</td>
<td>30</td>
</tr>
<tr>
<td>2</td>
<td>item2</td>
<td>3</td>
<td>14</td>
</tr>
<tr>
<td>3</td>
<td>item3<br /></td>
<td>4</td>
<td>16</td>
</tr>
<tr>
<td>4</td>
<td>item4</td>
<td>2</td>
<td>9</td>
</tr>
<tr>
<td>5</td>
<td>item5</td>
<td>5</td>
<td>20</td>
</tr>
</table>
<h3>Valor na Mochila:</h3>
<p id="valor"></p>
<h3>Itens Escolhidos:</h3>
<p id="itens"></p>
<script src="programacao-dinamica.js"></script>
</body>
</html>