//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { int N,i,k,t,q,r,p0,q0,s0; N=7; int [] A = new int [N];//+1 int [] B = new int [N];//+1 Random rnd = new Random (); for (i=0; i=N) r=N; //> else r=(t+2*k); p0=t; q0=q; s0=t; while ((p0!=q) || (q0!=r)) { if ((p0