fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. int[] x = { 2, 5, 32, 46, 92, 105, 210, 315 };
  8. int[] y = { 1, 3, 9, 16, 32, 41, 57, 95 };
  9. int[] z = { 4, 7, 9, 11, 13, 27, 32, 95 };
  10.  
  11. int p = 0, q = 0, r = 0;
  12. while (!((x[p] == y[q]) & (y[q] == z[r])))
  13. {
  14. if (x[p] < y[q]) p = p + 1;
  15. else
  16. if (y[q] < z[r]) q = q + 1;
  17. else
  18. if (z[r] < x[p]) r = r + 1;
  19. };
  20.  
  21. Console.WriteLine(x[p]);
  22. Console.ReadKey();
  23.  
  24. }
  25. }
Success #stdin #stdout 0.01s 131648KB
stdin
Standard input is empty
stdout
32