23 lines
433 B
C#
23 lines
433 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace ProjectKnapsack.classes;
|
|
|
|
public class KnapsackParameters
|
|
{
|
|
public int Capacity { get; set; }
|
|
public List<Item> Items { get; set; }
|
|
|
|
|
|
public class Item
|
|
{
|
|
public string Name { get; set; }
|
|
public int Weight { get; set; }
|
|
public int Value { get; set; }
|
|
|
|
}
|
|
}
|