ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1306. Sequence Median

This problem is not solvable in C#
Posted by Hikmat Ahmedov 31 Aug 2012 00:05
Guys, apparently this problem is not solvable in C#. Even it is written in FAQ:
“It’s not recommended to use Java and C# for solving following problems: 1220, 1275, 1306.”
Just creating half of the required array length with int gives Memory Limit Error
Like
using System;
public class Program
{
    private static void Main()
    {
        int[] nn=new int[125000];
    }
}
This code gives Memory Limit Error.
But some people solved in Java.
To whom who solved in Java, what was the array length in your case?
Does it give Memory Limit Error in Java  creating 125000 elements in int type ?
So should I learn C++?
Is it worth it?
Thanks for suggestions.
Re: This problem is not solvable in C#
Posted by Sandro (USU) 31 Aug 2012 16:07
Re: This problem is not solvable in C#
Posted by Buxoro 2 Sep 2012 16:13


Edited by author 02.09.2012 16:14
Re: This problem is not solvable in C#
Posted by Hikmat Ahmedov 2 Sep 2012 16:16
To whom who solved in Java or C#, Could you please send me the algorithm or solution to fakel2005@gmail.com

Thanks a lot
To Admins: This problem is not solvable in C#
Posted by Hikmat Ahmedov 2 Sep 2012 18:23
I’m sorry I’m obsessed with this problem

using System;
public class Program
{
    private static void Main()
    {

    }
}

Why this code gives me “Memory Limit Exceeded?”
I’m not doing anything here.
How is it even possible then writing something in it and expecting not to get MLE?
I have a question, if you submit those codes who solved in C# NOW, will it give AC NOW as before?
What I mean is maybe C# compiler which is being used now consumes too much memory?

Thanks,