Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- namespace The_Great_Samurai_Battle
- {
- class Program
- {
- static void Main(string[] args)
- {
- List<int> samuraiMasters = Console.ReadLine().Split(' ').Select(int.Parse).ToList();
- int sequenceLength = samuraiMasters.Count;
- while (samuraiMasters.Count > 1)
- {
- for (int attacker = 0; attacker < sequenceLength; attacker++)
- {
- int targetIndex = samuraiMasters[attacker] % sequenceLength;
- int difference = Math.Abs(attacker - targetIndex);
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment