deleriumbg

Untitled

May 26th, 2018
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4.  
  5. namespace The_Great_Samurai_Battle
  6. {
  7. class Program
  8. {
  9. static void Main(string[] args)
  10. {
  11. List<int> samuraiMasters = Console.ReadLine().Split(' ').Select(int.Parse).ToList();
  12. int sequenceLength = samuraiMasters.Count;
  13.  
  14. while (samuraiMasters.Count > 1)
  15. {
  16. for (int attacker = 0; attacker < sequenceLength; attacker++)
  17. {
  18. int targetIndex = samuraiMasters[attacker] % sequenceLength;
  19. int difference = Math.Abs(attacker - targetIndex);
  20. }
  21. }
  22. }
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment