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 2109. Tourism on Mars

C++ compiler
Posted by ASK 1 Mar 2018 14:23
cin.sync_with_stdio(false);

Ignore the notes. G++ is faster than Clang++, while Visual C++ 2017 gives TL.
Re: C++ compiler
Posted by Orient 2 Mar 2018 01:08
What do you mean? Speed of input?
Re: C++ compiler
Posted by ASK 3 Mar 2018 00:45
The problem statement has a note: "If you write your solution in C++ we recommend you to use Visual C++ 2013 compiler." It is a bad advice, since the same program AC with G++ but TL with MS C++ (obviously, I have no idea what exactly makes it TL).
Re: C++ compiler
Posted by Orient 3 Mar 2018 11:07
If you look through solution ratings of hardest problems, then you can see, that MS C++ is used more often then others (G++/clang++). Thus your experience is not representative.
Re: C++ compiler
Posted by ASK 12 Mar 2018 17:55
Why hardest problems if we are talking about this one? Just look at "Solutions rating of problem Tourism on Mars": the first MS C++ is number 13, ten times slower than the top, which uses G++.
Re: C++ compiler
Posted by Orient 12 Mar 2018 23:01
I agree, you're right.