using System; using System.IO; using System.Linq; using System.Text; using System.Collections.Generic; using System.Diagnostics; using Enu = System.Linq.Enumerable; class Program { static readonly int Size1 = (int)20000, Size2 = (int)1000; static readonly Random random = new Random(0); int[][] A = new int[Size1][]; public void Solve() { for (int i = 0; i < A.Length; i++) A[i] = new int[Size2]; DoSomething(); for (int i = 0; i < A.Length; i++) Array.Clear(A[i], 0, A[i].Length); DoSomething(); Console.WriteLine(0); } public bool DoSomething() { for (int r = 0; r < A.Length; r++) for (int c = 0; c < A[r].Length; c++) A[r][c] = random.Next(); return A[random.Next(Size1)][random.Next(Size2)] == 0; } } class Entry { static void Main() { new Program().Solve(); } }