80132024-01-12 10:18:23TortelliniJrSzínezéscsharpRuntime error 0/5021ms22196 KiB
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Diagnostics;
namespace fui
{
    class Program
    {
        static void Main(string[] args)
        {
            Random nrg = new Random();
            List<List<int>> e = new List<List<int>>();
            int f = 0;
            while (true)
            {
                e.Add(new List<int>());
                for (int i = 0; i < 1000; i++)
                {
                    e[f].Add(nrg.Next(0, int.MaxValue));
                }
                f++;
                float rate = GC.GetTotalMemory(false) / f;
                //Console.WriteLine(f + " items, " + (int)(GC.GetTotalMemory(false)/1000000) + "mb memory used. " + rate + " byte/item");
            }
        }
    }
}
SubtaskSumTestVerdictTimeMemory
base0/50
1Runtime error0/020ms17924 KiB
2Runtime error0/019ms18448 KiB
3Runtime error0/219ms18964 KiB
4Runtime error0/220ms19412 KiB
5Runtime error0/320ms20112 KiB
6Runtime error0/319ms20352 KiB
7Runtime error0/319ms20852 KiB
8Runtime error0/319ms20644 KiB
9Runtime error0/219ms21236 KiB
10Runtime error0/219ms20608 KiB
11Runtime error0/319ms20800 KiB
12Runtime error0/320ms20828 KiB
13Runtime error0/320ms20980 KiB
14Runtime error0/320ms21428 KiB
15Runtime error0/321ms21236 KiB
16Runtime error0/320ms21624 KiB
17Runtime error0/319ms21488 KiB
18Runtime error0/321ms22044 KiB
19Runtime error0/320ms21940 KiB
20Runtime error0/319ms22196 KiB