首先看一下题目 B. Permutation Game time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output n children are standing in a circle and playing a game. Children's numbers in clockwise order form a permutation
断断续续写了四天,感觉背包问题是最适合了解遗传算法的问题模型 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Bag { /// <summary> /// 背包类 /// </summary> public class Bag { public int Size { get; }