|  | 
|  | 
| back to board | If you have WA#1 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 or...
 reverse(res.begin(),res.end());
Re: If you have WA#1 Posted by Solfind  24 Jul 2024 22:36thx | 
 | 
|