using System; using System.Collections; class Class1 { static void Main() { //パターンのカウント int count = 0; int max = 0; //値の入力 int bigbox = int.Parse(Console.ReadLine()); int smallbox_height = int.Parse(Console.ReadLine()); string[] small_boxs = Console.ReadLine().Split(' '); ArrayList List = new ArrayList(); for(int i = 0;i max){ max += (int)i; count++; }else{ break; } } Console.WriteLine(count-1); } }