kunal05 kunal05 - 3 years ago 93
C++ Question

Does ACM-ICPC and Google CodeJam have different time limit for C++ and Java?

We all know that runtime of java takes somewhat more time than C/C++. So are the constraints same for each language or different?

If same, wouldn't it give additional advantage to a programming language rather than Coding?

Answer Source

Wikipedia: As Java solutions start slower than solutions in other compiled languages, it is not uncommon for Chinese university online judges to use greater time limits for Java solutions to be fair to contestants using Java .

But as an ACM-ICPC World Finalist says (here): time limits are set in a way such that a solution running in time could be written even in slower languages.

By my experience it's mostly matter of order and complexity. For example when a problem is considered to be solved in maximum of O(n^2), time limit and of-course the problem inputs are set in a way that you can accept it with the slowest language in O(n^2) and you will get "Time Limit" with the fastest language in O(n^3)

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download