First of all everybody knows that c, c++ and Java are the ACM language used at competition and everybody knows that there are still more users coding at c++ than java but
in the last years the java coders are increasing fastly because of the posibilities that the language offers.
The COJ has become the principal Online Judge of all Caribbean because of that the administrators has to be very carefuly with the user´s opinion and advices and principally with the errors on real competition.
It is true that are some problems that can be accepted in c++ and with the same algorithms you got TLE in Java and that shouden't happend in any training Online Judge but that is nothing compared to geting that in a real competition.
The trouble is that in the 2011 Cuban Final the problem Death Squads 1569 was accepted by a team using the trivial solution in c++.
The time was setted at 10 sec and they get 9.4 sec so they obtain an advantage over every team that codes in Java in all sense because
even if you code the problem with the expected solution you spent much more time on it and that is just unacceptable in a Cuban Final.
This year the competition was ok on the finals but in the BOCA.uci.cu training contest we got again a fright. The problem "money"
was accepted only in c++ because in java with the same exactly algorithms you got TLE. I just don't like when someone writes an excuses without arguments.
I just hope that in the Caribbean Regionals there will be no trouble with the difference between languages. A philosophic way to see why it is a problem:
"if i think as good as you, i will be contributing as much as you to the humanity, no matter the barrage of the language".
I have posted before this but i think is important so i put it here too:
To previse accepted solutions in c++ using bad algorithms you lets java solutions a factor for time increasing to match the languages in time matter,
what happends that you suspend it.
For the advantage of java over c++ of course that is not a solution that the java coders go to c++ that is completly agains the develoment of the Computer Science
of course that my grandfather prefers assambly code, is'nt it?.
PD: I don't want to criticize no body, in fact i know some admins and they are very good persons and prepared proffesionals that are helping a lot the develoment of the
computer science in Cuba.
The C++ vs Java Problem
Re: The C++ vs Java Problem
Off course as you refers, sometimes happens that you need to write the most efficient algorithm to get AC in java.It is true that are some problems that can be accepted in c++ and with the same algorithms you got TLE in Java and that shoudn't happend in any training Online Judge but that is nothing compared to geting that in a real competition.
if you spent much more time coding in java compare with the time someone else spent coding in c++, you should start thinking in learning how to code in c++, no to give up java but to posses other tools to face a variaty of tasks.The trouble is that in the 2011 Cuban Final the problem Death Squads 1569 was accepted by a team using the trivial solution in c++.
The time was setted at 10 sec and they get 9.4 sec so they obtain an advantage over every team that codes in Java in all sense because
even if you code the problem with the expected solution you spent much more time on it and that is just unacceptable in a Cuban Final.
same as beforeThis year the competition was ok on the finals but in the BOCA.uci.cu training contest we got again a fright. The problem "money"
was accepted only in c++ because in java with the same exactly algorithms you got TLE
Nobody is giving you worthless excuses, first you should know that there is a Latin American Judges Comitee in charge of creating and testing the problems so this problem you are reporting should not ocurred, on the other hand you should know that "Boca" is a system that is not develop by us so any complain about it, should be express in their official site.I just don't like when someone writes an excuses without arguments.
I just hope that in the Caribbean Regionals there will be no trouble with the difference between languages
I think this is not the solution because bad algorithm in c++ will remain ac, so taking into account that java is by far slower thaN c/c++ you should as i said earlier GIVE C++ A CHANCE, believe me, it will help. On the other hand the officials contests systems did not give java a factor for increasing the time.To previse accepted solutions in c++ using bad algorithms you lets java solutions a factor for time increasing to match the languages in time matter,
what happends that you suspend it.
A few tips that could/not help you.
If you are a coder in java, for the acm-icpc, always take into account that:
- your solutions most of the time will be at the edge and your algorithms should be the most eficients
- Scanner is by far slower than BufferReader.
- Try to use StringTokenizer, it is faster.
- Don't give up C++, sometimes it is pretty usefull.
hope this help you.
Re: The C++ vs Java Problem
Imagine that we began to program with "1" and "0" so that the programs will be the quickest (even that c/c++). What would it happen?? Would all begin to program this way only because the time would be smaller??Raudel_UH wrote: ...
in the last years the java coders are increasing fastly because of the posibilities that the language offers.
...
It is true that are some problems that can be accepted in c++ and with the same algorithms you got TLE in Java
...
I just hope ... there will be no trouble with the difference between languages.
...
"if i think as good as you, i will be contributing as much as you to the humanity, no matter the barrage of the language".
...
...the java coders go to c++ that is completly agains the develoment of the Computer Science
of course that my grandfather prefers assambly code, is'nt it?.
Raudel I'm with you
- luismawolf
- Posts: 30
- Joined: 6 years ago
- Gender:
Re: The C++ vs Java Problem
Trabajar con cadenas en c,c++, c++11 en una pesadilla. Por ejemplo trabajar con diferentes bases y conversiones.
Re: The C++ vs Java Problem
Yo creo que trabajar con cadenas en cualquier lenguaje depende de la experiencia que tenga la persona en ese lenguaje y el dominio de las funciones que permiten la manipulacion de estas. Si no las conoces o no las dominas en su totalidad, puede ser una pesadilla pero si las dominas, no creo que sea asi. Como esta seccion es de C++ Vs Java, le voy a dar a C++ la ventaja exponiendo uno de los principales disgustos que los que programamos en C++ nos llevamos cuando aprendemos Java, la sobrecarga de operadores. Eso es no discutible ya que Java no la posee.