programmer group

[find rules] srm599 500 point findpolygons

Description Find a lattice polygon with the smallest number of sides so that the perimeter is equal to L. if there are multiple solutions, find the one with the shortest difference between the longest side and the shortest side. Solution All sides are integers. There is no solution for L=2. L is an odd number without solution: For one of the edges, two points (x1,y1) and (x2,y2) are connected. c2=(x1−x2)2+(y1−y2)2 ....

programmer group

The problem of playing audio array in Unity3D

There is a problem in today's work. An audio array audioclip [] is loaded in unity3d. How to play this audio array in turn? At present, three schemes are proposed. Write them down and see if there are any shortcomings. Please point out and improve them The source code is as follows: using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; public class...