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 1137. Bus Routes

If you have WA#1
Posted by Vladimir Plyashkun [USU] 5 Jan 2014 23:38
be careful, you must output the number of stops in the new route k
and  NOT K+1
So, for example in C++
vector<int> res;
...

cout << res.size() - 1 << " "; // check this. not cout << res.size() << " ";


Edited by author 05.01.2014 23:39
Re: If you have WA#1
Posted by Oxxxymiron 30 Sep 2014 22:11
or
...
reverse(res.begin(),res.end());
Re: If you have WA#1
Posted by Solfind 24 Jul 2024 22:36
thx