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 1208. Legendary Teams Contest

tle in c++ and ac in java
Posted by alphaplus 26 Jan 2014 01:23
my same logic got tle in c++ but AC in java so beware
Re: tle in c++ and ac in java
Posted by Anisimov Dmitry (Novosibirsk STU) 2 Oct 2014 21:30
LOL. That's interesting. Could you share code please?
Re: tle in c++ and ac in java
Posted by Apkawa 24 Apr 2022 12:49
That's because in Java objects like String pass by their links, when in C++ strings pass by their values(all chars). So when you move a string in Java you do less operations than you do in C++


Edited by author 24.04.2022 12:50