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 2005. Taxi for Programmers

Hint, very easy
Posted by http://www.HelloACM.com 14 Nov 2013 23:36
s1 = ['1 2 3 4 5',
      '1 4 3 2 5',
      '1 3 2 4 5',
      '1 3 4 2 5']
Re: Hint, very easy
Posted by Stefano Locati 24 Jun 2014 02:16
[deleted]

Edited by author 24.06.2014 02:43
Re: Hint, very easy
Posted by Egor 30 Oct 2016 17:49
int order[3] = {2, 3, 4};
do
{
  if (order[2] == 3) continue;

  calculate_distance();

} while (next_permutation(order, order + 3);