The C++ vs Java Problem
Posted: Mon Nov 05, 2012 12:09 am
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.
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.