Пример #1
0
        public int Solution(string input)
        {
            Dictionary <int, Particle> particles = particlesRepository.GetParticles(input);
            int particle = simulation.FindParticleWhichStaysClosestToOriginPositionInTheLongTerm(particles);

            return(particle);
        }
Пример #2
0
        public int Solution(string input)
        {
            Dictionary <int, Particle> particles = particlesRepository.GetParticles(input);
            int leftParticlesCount = simulation.CountLeftParticlesAfterAllCollisionsAreResolved(particles);

            return(leftParticlesCount);
        }